fix jobMonitor.lua (#61)

This commit was merged in pull request #61.
This commit is contained in:
Kan18
2022-07-17 19:44:54 -04:00
committed by GitHub
parent b3052fe57b
commit cba2f7013f

View File

@@ -156,8 +156,8 @@ local function createPage(node)
if row.requested then if row.requested then
row.remaining = math.max(0, row.requested - row.crafted) row.remaining = math.max(0, row.requested - row.crafted)
--_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted) --_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted)
row.status = (row.status or '') ..
row.total = row.total or 0 row.total = row.total or 0
row.status = (row.status or '') ..
string.format(' %d of %d', row.crafted + row.total, row.total + row.requested) string.format(' %d of %d', row.crafted + row.total, row.total + row.requested)
else else
row.displayName = ' ' .. row.displayName row.displayName = ' ' .. row.displayName