1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-12-24 19:59:20 -05:00

made df wrap numbers better

This commit is contained in:
XeonSquared 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")