aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-27 22:59:58 +1000
committeronefang2019-12-27 22:59:58 +1000
commitc0b3e3ca971c2e449c3fbed520454b7884b392af (patch)
treed6317a7255d75fae22461cfcdf79e67c209c39a4
parentRe-enable Integrity tests. (diff)
downloadapt-panopticon-c0b3e3ca971c2e449c3fbed520454b7884b392af.zip
apt-panopticon-c0b3e3ca971c2e449c3fbed520454b7884b392af.tar.gz
apt-panopticon-c0b3e3ca971c2e449c3fbed520454b7884b392af.tar.bz2
apt-panopticon-c0b3e3ca971c2e449c3fbed520454b7884b392af.tar.xz
Update the TIMEOUT hack for updated percentage to match the new precision.
Diffstat (limited to '')
-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