diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-04-24 18:09:33 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-04-25 03:21:29 +0800 |
commit | 64f50184bed0686bd95ba3dc923c1bc3c63e1240 (patch) | |
tree | e2cebeab6b4088d5c2f6dec4fe8eadbbae5e0443 /libempathy | |
parent | 063625395264373ce915fac0ac03562527c7bf51 (diff) | |
download | gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar.gz gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar.bz2 gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar.lz gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar.xz gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.tar.zst gsoc2013-empathy-64f50184bed0686bd95ba3dc923c1bc3c63e1240.zip |
Refresh each second instead of each 2 seconds
Diffstat (limited to 'libempathy')
-rw-r--r-- | 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 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; |