maj affichage

This commit is contained in:
Jephté Clain 2014-05-27 11:48:19 +04:00
parent 508e9f3eb8
commit ba7f2d5886
1 changed files with 1 additions and 1 deletions

2
ucalc
View File

@ -115,7 +115,7 @@ function printvalues(values, maxl, count, i, value, padlen) {
array_new(values)
maxl = 0
if (ounit == "b" || ounit == "") maxl = addvalue(value, " octets", values, maxl)
if (ounit == "K" || ounit == "") maxl = convert(value, 1024, "KiB", 0, "", values, maxl)
if (ounit == "K" || ounit == "") maxl = convert(value, 1024, "KiB / blocs de 1Ko", 0, "", values, maxl)
if (ounit == "M" || ounit == "") maxl = convert(value, 1024 * 1024, "MiB", 1024, "KiB", values, maxl)
if (ounit == "G" || ounit == "") maxl = convert(value, 1024 * 1024 * 1024, "GiB", 1024 * 1024, "MiB", values, maxl)
if (ounit == "T" || ounit == "") maxl = convert(value, 1024 * 1024 * 1024 * 1024, "TiB", 1024 * 1024 * 1024, "GiB", values, maxl)