aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon-report-email-web.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index 2a13e29..86484be 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -468,8 +468,8 @@ if nil == web then C("opening mirrors file - " .. e) else
468 end 468 end
469 end 469 end
470 percentUpdated = string.format('%.2f', (down / count * 100)) 470 percentUpdated = string.format('%.2f', (down / count * 100))
471 if '0' == percentUp then percentUpdated = '??' end -- We are counting errors, and you can't get an error if you can't check anything. 471 if '0.00' == percentUp then percentUpdated = '??' end -- We are counting errors, and you can't get an error if you can't check anything.
472 -- TODO - try to account for this better, this is just a quick hack. 472 -- TODO - try to account for this better, this is just a quick hack.
473 end 473 end
474 week = '<td>' .. percentUp .. '% up</td><td>' .. percentUpdated .. '% updated</td>' 474 week = '<td>' .. percentUp .. '% up</td><td>' .. percentUpdated .. '% updated</td>'
475 end 475 end