From 6378f8fe6b4bb7f6463d9eeebecf7a5b16f3bb05 Mon Sep 17 00:00:00 2001 From: RubenHetKonijn <64010592+RubenHetKonijn@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:53:52 +0200 Subject: [PATCH] address the TODO in the file --- milo/plugins/statsView.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milo/plugins/statsView.lua b/milo/plugins/statsView.lua index 799c1a2..db996ff 100644 --- a/milo/plugins/statsView.lua +++ b/milo/plugins/statsView.lua @@ -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