[empathy] Refresh each second instead of each 2 seconds



commit 64f50184bed0686bd95ba3dc923c1bc3c63e1240
Author: Xavier Claessens <xclaesse gmail com>
Date:   Fri Apr 24 12:09:33 2009 +0200

    Refresh each second instead of each 2 seconds
---
 libempathy/empathy-tp-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 3723f35..56f59a8 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]