commit 41b24a9b5128aef3ead68897d05e0004b28195bb
parent e66bf0b9e8fbdd84d7591b37ba26a1b019d0d6f8
Author: ukai <ukai>
Date: Tue, 6 May 2003 16:35:36 +0000
[w3m-dev 03889] Progress bar in Download List Panel
* main.c (DownloadListBuffer): calculation in double
From: Hiroyuki Ito <hito@crl.go.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-07 Hiroyuki Ito <hito@crl.go.jp>
+
+ * [w3m-dev 03889] Progress bar in Download List Panel
+ * main.c (DownloadListBuffer): calculation in double
+
2003-05-07 SAKAI Kiyotaka <ksakai@kso.netwk.ntt-at.co.jp>
* [w3m-dev 03888] autodetect ssl
diff --git a/main.c b/main.c
@@ -6202,7 +6202,7 @@ DownloadListBuffer(void)
if (d->size) {
int i, l = COLS - 6;
if (size < d->size)
- i = l * size / d->size;
+ i = 1.0 * l * size / d->size;
else
i = l;
l -= i;