OSDN Git Service
(root)
/
applistation
/
AppliStation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d897bd
)
na-get-lib,ダウンロードサイズ不明時に進捗%が出ないように修正したつもり
author
ttp
<ttp@users.sourceforge.jp>
Fri, 24 Oct 2008 15:02:26 +0000
(15:02 +0000)
committer
ttp
<ttp@users.sourceforge.jp>
Fri, 24 Oct 2008 15:02:26 +0000
(15:02 +0000)
git-svn-id: http://localhost/svn/AppliStation/trunk@987
34ed2c89
-c49f-4a4b-abdb-
c318350108cf
na-get-lib/NaGet.Net/Downloader.cs
patch
|
blob
|
history
diff --git
a/na-get-lib/NaGet.Net/Downloader.cs
b/na-get-lib/NaGet.Net/Downloader.cs
index
0920001
..
165d6b2
100644
(file)
--- a/
na-get-lib/NaGet.Net/Downloader.cs
+++ b/
na-get-lib/NaGet.Net/Downloader.cs
@@
-268,9
+268,9
@@
public class Downloader : NaGetTask
case DownloadEventType.STARTED:
\r
case DownloadEventType.DOWNLOADING:
\r
case DownloadEventType.COMPLETED:
\r
-
try
{
\r
+
if (e.TaskProgressPercent >= 0)
{
\r
e.TaskMessage = string.Format("{0} bytes ({1} %)", e.DownloadSize, (int) e.TaskProgressPercent);
\r
- }
catch (DivideByZeroException)
{
\r
+ }
else
{
\r
e.TaskMessage = string.Format("{0} bytes", e.DownloadSize);
\r
}
\r
\r