From b66f9e08868ec26308ce226d8024d9fc0cd41b5d Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 12 Oct 2022 12:59:55 +1000 Subject: Cater for more mirrors. --- apt-panopticon-report-email-web.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 = '00080080', '00008080', '00000880', + 'fff00080', + '0fff0080', + '00fff080', + '000fff80', + '0000fff0', } local g = {} local count = 0 @@ -537,6 +542,7 @@ for k, v in APT.orderedPairs(mirrors) do if APT.options.roundRobin.value ~= k then local c = colours[count] local name = string.format('%32s', k) + if c == nil then c = 'ffffff' end if APT.options.referenceSite.value == k then c = 'ffffff' end table.insert(g, 'DEF:speedn' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MIN') table.insert(g, 'DEF:speedx' .. count .. '=rrd/' .. k .. '/Speed/Speed.rrd:max:MAX') -- cgit v1.1