maj affichage
This commit is contained in:
parent
508e9f3eb8
commit
ba7f2d5886
2
ucalc
2
ucalc
|
@ -115,7 +115,7 @@ function printvalues(values, maxl, count, i, value, padlen) {
|
||||||
array_new(values)
|
array_new(values)
|
||||||
maxl = 0
|
maxl = 0
|
||||||
if (ounit == "b" || ounit == "") maxl = addvalue(value, " octets", values, maxl)
|
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 == "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 == "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)
|
if (ounit == "T" || ounit == "") maxl = convert(value, 1024 * 1024 * 1024 * 1024, "TiB", 1024 * 1024 * 1024, "GiB", values, maxl)
|
||||||
|
|
Loading…
Reference in New Issue