diff options
Diffstat (limited to 'progressmeter.c')
-rw-r--r-- | progressmeter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progressmeter.c b/progressmeter.c index 3cda09061..13c51d87e 100644 --- a/progressmeter.c +++ b/progressmeter.c | |||
@@ -85,8 +85,8 @@ format_rate(char *buf, int size, off_t bytes) | |||
85 | bytes = (bytes + 512) / 1024; | 85 | bytes = (bytes + 512) / 1024; |
86 | } | 86 | } |
87 | snprintf(buf, size, "%3lld.%1lld%c%s", | 87 | snprintf(buf, size, "%3lld.%1lld%c%s", |
88 | (int64_t) (bytes + 5) / 100, | 88 | (long long) (bytes + 5) / 100, |
89 | (int64_t) (bytes + 5) / 10 % 10, | 89 | (long long) (bytes + 5) / 10 % 10, |
90 | unit[i], | 90 | unit[i], |
91 | i ? "B" : " "); | 91 | i ? "B" : " "); |
92 | } | 92 | } |
@@ -99,7 +99,7 @@ format_size(char *buf, int size, off_t bytes) | |||
99 | for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) | 99 | for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) |
100 | bytes = (bytes + 512) / 1024; | 100 | bytes = (bytes + 512) / 1024; |
101 | snprintf(buf, size, "%4lld%c%s", | 101 | snprintf(buf, size, "%4lld%c%s", |
102 | (int64_t) bytes, | 102 | (long long) bytes, |
103 | unit[i], | 103 | unit[i], |
104 | i ? "B" : " "); | 104 | i ? "B" : " "); |
105 | } | 105 | } |