diff options
author | onefang | 2019-12-27 22:59:58 +1000 |
---|---|---|
committer | onefang | 2019-12-27 22:59:58 +1000 |
commit | c0b3e3ca971c2e449c3fbed520454b7884b392af (patch) | |
tree | d6317a7255d75fae22461cfcdf79e67c209c39a4 | |
parent | Re-enable Integrity tests. (diff) | |
download | apt-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-x | apt-panopticon-report-email-web.lua | 4 |
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 |