Adress a couple of issues (#58)

This commit was merged in pull request #58.
This commit is contained in:
EmmaKnijn
2022-07-17 23:43:14 +02:00
committed by GitHub
parent af570c7769
commit b3052fe57b
3 changed files with 20 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ local function createPage(node)
{ heading = 'Size', key = 'size', width = 5 },
{ heading = 'Used', key = 'used', width = 5 },
{ heading = 'Perc', key = 'perc', width = 5 },
-- TODO: add % to each number
},
sortColumn = 'name',
},
@@ -224,7 +224,7 @@ local function createPage(node)
name = n.displayName or n.name,
size = n.adapter.__size,
used = n.adapter.__used,
perc = math.floor(n.adapter.__used / n.adapter.__size * 100),
perc = tostring(math.floor(n.adapter.__used / n.adapter.__size * 100)) .. "%",
updated = updated,
})
totals.usedSlots = totals.usedSlots + n.adapter.__used