cleanup
This commit is contained in:
parent
30adec127f
commit
7e4fd2f422
@ -86,9 +86,8 @@ local function formatEntries(t,used,size,searchterm)
|
|||||||
local rt = {}
|
local rt = {}
|
||||||
local mx, my = mtmenu.getScreenSize()
|
local mx, my = mtmenu.getScreenSize()
|
||||||
rt.header = " Name" .. (" "):rep(mx-11) .. "Count"
|
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
|
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 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)
|
local fmt = string.format("%%-%is %%s", mx-#count-1)
|
||||||
rt[k] = string.format(fmt, v.label, count)
|
rt[k] = string.format(fmt, v.label, count)
|
||||||
|
Loading…
Reference in New Issue
Block a user