This commit is contained in:
Izaya 2023-11-23 12:36:06 +10:00
parent 30adec127f
commit 7e4fd2f422
1 changed files with 1 additions and 2 deletions

View File

@ -86,9 +86,8 @@ local function formatEntries(t,used,size,searchterm)
local rt = {}
local mx, my = mtmenu.getScreenSize()
rt.header = " Name" .. (" "):rep(mx-11) .. "Count"
rt.status = string.format(" %s (%i/%i) %s %s", phases[math.floor((os.time()-43200)/86400)%8], used, size, searchterm, (" "):rep(mx)):sub(1,mx):sub(1,mx-5) .. "[H]elp"
rt.status = string.format(" %s (%i/%i) %s %s", phases[math.floor((os.time()-43200)/86400)%8], used, size, searchterm, (" "):rep(mx)):sub(1,mx-5) .. "[H]elp"
for k,v in ipairs(t) do
-- (YYxYY+NN)
local count = string.format("(%ix%i+%i)",v.size//v.maxSize, v.maxSize, v.size%v.maxSize)
local fmt = string.format("%%-%is %%s", mx-#count-1)
rt[k] = string.format(fmt, v.label, count)