Ticket #4523: si-iec-units.diff
File si-iec-units.diff, 808 bytes (added by lmarcantonio, 10 months ago) |
---|
-
util.c
old new 453 453 #endif 454 454 }; 455 455 /* *INDENT-ON* */ 456 static const char *const suffix[] = 457 { "", "K", "M", "G", "T", "P", "E", "Z", "Y", "R", "Q", NULL }; 458 static const char *const suffix_lc[] = 459 { "", "k", "m", "g", "t", "p", "e", "z", "y", "r", "q", NULL }; 456 static const char *const suffix_iec[] = 457 { "", "Ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi", "Yi", "Ri", 458 "Qi", NULL }; 459 static const char *const suffix_si[] = 460 { "", "k", "M", "G", "T", "P", "E", "Z", "Y", "R", "Q", NULL }; 460 461 461 const char *const *sfx = use_si ? suffix_ lc : suffix;462 const char *const *sfx = use_si ? suffix_si : suffix_iec; 462 463 int j = 0; 463 464 464 465 if (len == 0)