summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-main.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r--xdelta3/xdelta3-main.h4
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}