From c8b6e07f27f102dc50fdc916719b5870de46d106 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 9 Sep 2012 20:52:36 +0200 Subject: [PATCH] No speed or remaining time for finished transfers --- midori/midori-download.vala | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.39.5