From e578f1598ce70d330669c3f5ff7745c71e182735 Mon Sep 17 00:00:00 2001 From: ttp Date: Sat, 25 Oct 2008 14:22:02 +0000 Subject: [PATCH] =?utf8?q?na-get-lib,=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD?= =?utf8?q?=E3=83=BC=E3=83=89=E3=82=B5=E3=82=A4=E3=82=BA=E4=B8=8D=E6=98=8E?= =?utf8?q?=E6=99=82=E3=81=AB=E9=80=B2=E6=8D=97%=E3=81=8C=E5=87=BA=E3=81=AA?= =?utf8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=E3=80=82?= =?utf8?q?=E5=8B=95=E4=BD=9C=E3=82=82=E7=A2=BA=E8=AA=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://localhost/svn/AppliStation/trunk@988 34ed2c89-c49f-4a4b-abdb-c318350108cf --- na-get-lib/NaGet.Net/Downloader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/na-get-lib/NaGet.Net/Downloader.cs b/na-get-lib/NaGet.Net/Downloader.cs index 165d6b2..9fab357 100644 --- a/na-get-lib/NaGet.Net/Downloader.cs +++ b/na-get-lib/NaGet.Net/Downloader.cs @@ -277,10 +277,10 @@ public class Downloader : NaGetTask if (stopwatch != null && stopwatch.IsRunning && stopwatch.ElapsedMilliseconds > 3000) { long bpers = e.DownloadSize * 1000 / stopwatch.ElapsedMilliseconds; - try { + if (e.TaskProgressPercent >= 0) { TimeSpan rest = TimeSpan.FromSeconds((max - e.DownloadSize) / bpers); e.TaskMessage += string.Format(" 推定残り時間:{0} ({1}/s)", rest, NaGet.Utils.FormatSize(bpers)); - } catch { + } else { e.TaskMessage += string.Format(" ({0}/s)", NaGet.Utils.FormatSize(bpers)); } } -- 2.11.0