aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2026-05-16 14:37:50 -0700
committerDan Fandrich <danf@mageia.org>2026-05-16 14:37:50 -0700
commit3aa82d3d58259d017635255d06ca91906bb67bd4 (patch)
tree8a7f4cfa400ad6314c9f8107e857bd18a2e0637b
parent6b1a23e3a0e4a7114dab292a729741fde197a8f4 (diff)
downloadmgamirrors-3aa82d3d58259d017635255d06ca91906bb67bd4.tar
mgamirrors-3aa82d3d58259d017635255d06ca91906bb67bd4.tar.gz
mgamirrors-3aa82d3d58259d017635255d06ca91906bb67bd4.tar.bz2
mgamirrors-3aa82d3d58259d017635255d06ca91906bb67bd4.tar.xz
mgamirrors-3aa82d3d58259d017635255d06ca91906bb67bd4.zip
Highlight the Mageia source node
This is the root of the mirror tree, so it should be easy to find in the synchronisation tree graph.
-rw-r--r--lib/MGA/Mirrors/Controller/Graph.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MGA/Mirrors/Controller/Graph.pm b/lib/MGA/Mirrors/Controller/Graph.pm
index a2b6ad6..1616f67 100644
--- a/lib/MGA/Mirrors/Controller/Graph.pm
+++ b/lib/MGA/Mirrors/Controller/Graph.pm
@@ -40,6 +40,10 @@ sub index :Path :Args(0) {
foreach ($from, $to) {
if (!$nodadded{$_}) {
$graph->add_node($_, shape => 'box', cluster => $node{$_}{country});
+ if ($_ =~ /mageia\.org$/) {
+ # The Mageia source host is made colourful since it's the source
+ $graph->add_node($_, style => 'filled', fillcolor => '#c3ddfc');
+ }
}
}
# Minimum bandwidth of both nodes