more reorganizeing and $PKGCONFIG.ini files added B to ls -lh for "Bytes"

This commit is contained in:
2026-03-09 11:28:09 -04:00
parent a69f945b91
commit 1590e1f3f7
25 changed files with 100 additions and 96 deletions

View File

@@ -45,7 +45,7 @@ if cloptions.help then
return
end
local fs = require("sys.fs")
local fs = require("fs")
local dir = args[1] or ""
if dir:sub(1, 1) ~= "/" then
dir = syscall.getcwd() .. "/" .. dir
@@ -84,7 +84,7 @@ local function humanSize(size)
size = size / 1024
scale = scale + 1
end
if scale == 0 then return tostring(size) end
if scale == 0 then return tostring(size).."B" end
if size < 10 then
return string.format("%.1f%s", size, sizePrefixes[scale])
end