From: Christian Dywan Date: Sun, 9 Sep 2012 18:52:36 +0000 (+0200) Subject: No speed or remaining time for finished transfers X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8b6e07f27f102dc50fdc916719b5870de46d106;p=midori No speed or remaining time for finished transfers --- diff --git a/midori/midori-download.vala b/midori/midori-download.vala index 994a7ce0..ee44a9d6 100644 --- a/midori/midori-download.vala +++ b/midori/midori-download.vala @@ -49,6 +49,10 @@ namespace Midori { format_size (download.current_size), format_size (download.total_size)); + /* Finished, no speed or remaining time */ + if (is_finished (download) || download.status == WebKit.DownloadStatus.CREATED) + return "%s\n%s".printf (filename, size); + uint64 total_size = download.total_size, current_size = download.current_size; double elapsed = download.get_elapsed_time (), diff = elapsed / current_size,