diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-03-24 13:23:06 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-03-24 13:23:06 +0000 |
commit | bf7c199b648e36be3cc68410d1f572ffbe2007d1 (patch) | |
tree | f4585b3612e6d21f84430d2ab4c3bde2a42bbf5f /xdelta3/xdelta3-main.h | |
parent | f52e28968f4f9d782b9f98f25b10e1cafbee0b11 (diff) |
Use 1024 instead of 1000 for KB/MB/GB calculations.
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r-- | xdelta3/xdelta3-main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index a912a1f..284f115 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -535,12 +535,12 @@ main_format_bcnt (xoff_t r, char *buf) | |||
535 | 535 | ||
536 | for (i = 0; i < SIZEOF_ARRAY(fmts); i += 1) | 536 | for (i = 0; i < SIZEOF_ARRAY(fmts); i += 1) |
537 | { | 537 | { |
538 | if (r < 10 * 1e3 || i == (-1 + (int)SIZEOF_ARRAY(fmts))) | 538 | if (r <= (10 * 1024) || i == (-1 + (int)SIZEOF_ARRAY(fmts))) |
539 | { | 539 | { |
540 | sprintf (buf, "%"Q"u %s", r, fmts[i]); | 540 | sprintf (buf, "%"Q"u %s", r, fmts[i]); |
541 | break; | 541 | break; |
542 | } | 542 | } |
543 | r /= 1000; | 543 | r /= 1024; |
544 | } | 544 | } |
545 | return buf; | 545 | return buf; |
546 | } | 546 | } |