made df wrap numbers better

This commit is contained in:
Izaya 2019-11-09 14:59:34 +11:00
parent faca451c57
commit ec699518b5

View File

@ -13,7 +13,7 @@ local function wrapUnits(n)
if not scale[count] then return "inf" end
n = n / 1024
end
return tostring(n)..(scale[count] or "")
return tostring(math.floor(n))..(scale[count] or "")
end
local fstr = "%-"..tostring(ml).."s %5s %5s"
print("fs"..(" "):rep(ml-2).." size used")