]> git.0d.be Git - empathy.git/commitdiff
Refresh each second instead of each 2 seconds
authorXavier Claessens <xclaesse@gmail.com>
Fri, 24 Apr 2009 10:09:33 +0000 (12:09 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Fri, 24 Apr 2009 19:21:29 +0000 (21:21 +0200)
libempathy/empathy-tp-file.c

index 3723f35c369a3940c92ebe5487933cb943003dfd..56f59a83ab9c7618ca30212f3ad85fd95d04d31e 100644 (file)
@@ -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;