diff options
author | onefang | 2022-10-12 12:59:55 +1000 |
---|---|---|
committer | onefang | 2022-10-12 12:59:55 +1000 |
commit | b66f9e08868ec26308ce226d8024d9fc0cd41b5d (patch) | |
tree | a372d4c44eee15dfd6811f5fa28604d5afdf695a | |
parent | Give up on using devuan-keyring as a Devuan reference package, try base-files... (diff) | |
download | apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.zip apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.gz apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.bz2 apt-panopticon-b66f9e08868ec26308ce226d8024d9fc0cd41b5d.tar.xz |
Cater for more mirrors.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 6 |
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 | } |
527 | local g = {} | 532 | local g = {} |
528 | local count = 0 | 533 | local 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') |