made df wrap numbers better
This commit is contained in:
parent
faca451c57
commit
ec699518b5
@ -13,7 +13,7 @@ local function wrapUnits(n)
|
|||||||
if not scale[count] then return "inf" end
|
if not scale[count] then return "inf" end
|
||||||
n = n / 1024
|
n = n / 1024
|
||||||
end
|
end
|
||||||
return tostring(n)..(scale[count] or "")
|
return tostring(math.floor(n))..(scale[count] or "")
|
||||||
end
|
end
|
||||||
local fstr = "%-"..tostring(ml).."s %5s %5s"
|
local fstr = "%-"..tostring(ml).."s %5s %5s"
|
||||||
print("fs"..(" "):rep(ml-2).." size used")
|
print("fs"..(" "):rep(ml-2).." size used")
|
||||||
|
Loading…
Reference in New Issue
Block a user