Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca9e5d
)
Tweaked the --human-readable code to work with the new option parsing.
author
Wayne Davison
<wayned@samba.org>
Wed, 8 Feb 2006 16:52:51 +0000
(16:52 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 8 Feb 2006 16:52:51 +0000
(16:52 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
50ad347
..
3beae57
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-1074,7
+1074,7
@@
char *human_num(int64 num)
if (human_readable) {
char units = '\0';
- int mult = human_readable == 1 ? 10
24 : 1000
;
+ int mult = human_readable == 1 ? 10
00 : 1024
;
double dnum = 0;
if (num > mult*mult*mult) {
dnum = (double)num / (mult*mult*mult);