aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2022-10-12 12:59:55 +1000
committeronefang2022-10-12 12:59:55 +1000
commitb66f9e08868ec26308ce226d8024d9fc0cd41b5d (patch)
treea372d4c44eee15dfd6811f5fa28604d5afdf695a
parentGive up on using devuan-keyring as a Devuan reference package, try base-files... (diff)
downloadapt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.zip
apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.gz
apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.bz2
apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.xz
Cater for more mirrors.
-rwxr-xr-xapt-panopticon-report-email-web.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index 280e433..73fd0ac 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -523,6 +523,11 @@ local colours =
523 '00080080', 523 '00080080',
524 '00008080', 524 '00008080',
525 '00000880', 525 '00000880',
526 'fff00080',
527 '0fff0080',
528 '00fff080',
529 '000fff80',
530 '0000fff0',
526} 531}
527local g = {} 532local g = {}
528local count = 0 533local count = 0
@@ -537,6 +542,7 @@ for k, v in APT.orderedPairs(mirrors) do
537 if APT.options.roundRobin.value ~= k then 542 if APT.options.roundRobin.value ~= k then
538 local c = colours[count] 543 local c = colours[count]
539 local name = string.format('%32s', k) 544 local name = string.format('%32s', k)
545 if c == nil then c = 'ffffff' end
540 if APT.options.referenceSite.value == k then c = 'ffffff' end 546 if APT.options.referenceSite.value == k then c = 'ffffff' end
541 table.insert(g, 'DEF:speedn' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MIN') 547 table.insert(g, 'DEF:speedn' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MIN')
542 table.insert(g, 'DEF:speedx' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MAX') 548 table.insert(g, 'DEF:speedx' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MAX')