From ec699518b5888d4c018053260c9e34b48d7fdd93 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Nov 2019 14:59:34 +1100 Subject: [PATCH] made df wrap numbers better --- exec/df.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/df.lua b/exec/df.lua index e687c9b..265fedc 100644 --- a/exec/df.lua +++ b/exec/df.lua @@ -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")