[empathy: 112/148] Report the right remaining time in the progress cb
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 112/148] Report the right remaining time in the progress cb
- Date: Mon, 1 Jun 2009 12:17:11 -0400 (EDT)
commit 45e9d9d455df7732f19e5af8c54c066965238eaa
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon May 18 19:21:49 2009 +0200
Report the right remaining time in the progress cb
---
libempathy/empathy-ft-handler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index a4c123a..d537f48 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]