aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-23 08:02:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-23 08:02:12 +0000
commitfac1c13895b62464abd7c4e875d46b12ec7873c0 (patch)
tree11c37bdcf5f501ca0e0df1d48987b5f8e4e3580f
parent649caa19538d0a1e11614270d3fb33e844d6fd84 (diff)
fixed the progress meter display for files >32 bit, Gisle Vanem reported
-rw-r--r--lib/progress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/progress.c b/lib/progress.c
index 8f0b8cb6f..972629c64 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -59,11 +59,11 @@ static char *max5data(double bytes, char *max5)
#define ONE_MEGABYTE (1024*1024)
if(bytes < 100000) {
- sprintf(max5, "%5d", (int)bytes);
+ sprintf(max5, "%5Od", (curl_off_t)bytes);
return max5;
}
if(bytes < (10000*ONE_KILOBYTE)) {
- sprintf(max5, "%4dk", (int)bytes/ONE_KILOBYTE);
+ sprintf(max5, "%4Odk", (curl_off_t)bytes/ONE_KILOBYTE);
return max5;
}
if(bytes < (100*ONE_MEGABYTE)) {
@@ -71,7 +71,7 @@ static char *max5data(double bytes, char *max5)
sprintf(max5, "%4.1fM", bytes/ONE_MEGABYTE);
return max5;
}
- sprintf(max5, "%4dM", (int)bytes/ONE_MEGABYTE);
+ sprintf(max5, "%4OdM", (curl_off_t)bytes/ONE_MEGABYTE);
return max5;
}