mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-02-03 11:59:15 +00:00
file-transfer: remove unused function for debug
This is here due bad rebase. It was removed and replaced by patchf6072e678ebut not removed from1af22e9652"file-xfer: move to spice-file-transfer-task.c", so the function is there, unused. Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
5a301b201b
commit
3a91bcfffa
@ -52,7 +52,6 @@ gssize spice_file_transfer_task_read_finish(SpiceFileTransferTask *self,
|
||||
GError **error);
|
||||
guint64 spice_file_transfer_task_get_file_size(SpiceFileTransferTask *self);
|
||||
guint64 spice_file_transfer_task_get_bytes_read(SpiceFileTransferTask *self);
|
||||
void spice_file_transfer_task_debug_info(SpiceFileTransferTask *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -464,21 +464,6 @@ gssize spice_file_transfer_task_read_finish(SpiceFileTransferTask *self,
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void spice_file_transfer_task_debug_info(SpiceFileTransferTask *self)
|
||||
{
|
||||
const GTimeSpan interval = 20 * G_TIME_SPAN_SECOND;
|
||||
gint64 now = g_get_monotonic_time();
|
||||
|
||||
if (interval < now - self->last_update) {
|
||||
gchar *basename = g_file_get_basename(self->file);
|
||||
self->last_update = now;
|
||||
SPICE_DEBUG("transferred %.2f%% of the file %s",
|
||||
100.0 * self->read_bytes / self->file_size, basename);
|
||||
g_free(basename);
|
||||
}
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* External API
|
||||
******************************************************************************/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user