diff options
Diffstat (limited to 'src/HTAlert.c')
-rw-r--r-- | src/HTAlert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HTAlert.c b/src/HTAlert.c index ca29076e..c43c22e9 100644 --- a/src/HTAlert.c +++ b/src/HTAlert.c @@ -248,7 +248,7 @@ void HTReadProgress(long bytes, long total) total = total_last; } if ((bytes > 0) && - (now != first)) + (now > first)) /* 1 sec delay for transfer_rate calculation without g-t-o-d */ { if (transfer_rate <= 0) /* the very first time */ transfer_rate = (long) ((bytes) / (now - first)); /* bytes/sec */ @@ -272,7 +272,7 @@ void HTReadProgress(long bytes, long total) } #endif if (renew) { - if (now != last) { + if (now > last) { last = now; if (bytes_last != bytes) last_active = now; |