aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-05-19 01:21:49 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:53:22 +0800
commit45e9d9d455df7732f19e5af8c54c066965238eaa (patch)
tree873358316dbf697bdcc33dae5e510991717a8dba /libempathy
parentffe88b8bb214b0af5b92f600d9fa43bbd71d4761 (diff)
downloadgsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar.gz
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar.bz2
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar.lz
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar.xz
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.tar.zst
gsoc2013-empathy-45e9d9d455df7732f19e5af8c54c066965238eaa.zip
Report the right remaining time in the progress cb
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-ft-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index a4c123a65..d537f4896 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -595,7 +595,7 @@ update_remaining_time_and_speed (EmpathyFTHandler *handler,
{
transferred = transferred_bytes - last_transferred_bytes;
speed = (gdouble) transferred / (gdouble) elapsed_time;
- remaining_time = (priv->total_bytes - transferred) / speed;
+ remaining_time = (priv->total_bytes - priv->transferred_bytes) / speed;
priv->speed = speed;
priv->remaining_time = remaining_time;
priv->last_update_time = current_time;