From 64f50184bed0686bd95ba3dc923c1bc3c63e1240 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 24 Apr 2009 12:09:33 +0200 Subject: Refresh each second instead of each 2 seconds --- libempathy/empathy-tp-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c index 3723f35c3..56f59a83a 100644 --- a/libempathy/empathy-tp-file.c +++ b/libempathy/empathy-tp-file.c @@ -542,7 +542,7 @@ tp_file_transferred_bytes_changed_cb (TpChannel *channel, * the transfer, I think. */ curr_time = empathy_time_get_current (); elapsed_time = curr_time - tp_file->priv->last_update_time; - if (elapsed_time > 1) + if (elapsed_time >= 1) { transferred_bytes = count - tp_file->priv->last_update_transferred_bytes; tp_file->priv->speed = (gdouble) transferred_bytes / (gdouble) elapsed_time; -- cgit v1.2.3