Tweaked the --human-readable code to work with the new option parsing.
[rsync/rsync.git] / util.c
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 ? 1024 : 1000;
+               int mult = human_readable == 1 ? 1000 : 1024;
                double dnum = 0;
                if (num > mult*mult*mult) {
                        dnum = (double)num / (mult*mult*mult);