diff options
Diffstat (limited to 'apt-panopticon-report-email-web.lua')
-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') |