summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2011-11-27 12:13:25 +0100
committerJoel Klinghed <the_jk@yahoo.com>2011-11-27 12:13:46 +0100
commitdd58c017207a6d05bcdaa47f106da8dc11b45fde (patch)
treea3eacb6263cfa9346e6fdbb7d0efe5d81df60e41
parent8c5f88aee7fde1ea8dd9eaf29f390ef759f77c37 (diff)
Reset left at every sync
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a98a292..94af9f2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2108,6 +2108,7 @@ gboolean hashlist_item_sync(worker_data_t* data, xmlrpc_env * const env,
up_rate = (guint64)tmpi64;
torrent_data->up = (gfloat)up_rate / 1000.0f;
+ torrent_data->left = -1;
if (torrent_data->downloaded < 100.0f)
{
if (down_rate >= 512)