From bb8cb64da80ded1ceb24b0a807685ab0b8b22748 Mon Sep 17 00:00:00 2001 From: RubenHetKonijn <64010592+RubenHetKonijn@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:24:53 +0200 Subject: [PATCH] fix #55 This should fix the error being displayed in issue #55 --- milo/plugins/jobMonitor.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/milo/plugins/jobMonitor.lua b/milo/plugins/jobMonitor.lua index a548fcf..d24d164 100644 --- a/milo/plugins/jobMonitor.lua +++ b/milo/plugins/jobMonitor.lua @@ -157,7 +157,8 @@ local function createPage(node) row.remaining = math.max(0, row.requested - row.crafted) --_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted) row.status = (row.status or '') .. - string.format(' %d of %d', row.crafted + row.total, row.total + row.requested) + row.total = row.total or 0 + string.format(' %d of %d', row.crafted + row.total, row.total + row.requested) else row.displayName = ' ' .. row.displayName row.status = (row.status or '') .. string.format(' %d of %d', row.count, row.total)