From 28a14212683f2ce96c6f27e3bf8a76c1b4fb7f57 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 28 Jun 2020 21:13:31 +0000 Subject: Another colouring fix Mirrors over 2 days old should be in broken style --- modules/mga-mirrors/files/check_mirrors_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status index 027457d9..80d0f8b7 100755 --- a/modules/mga-mirrors/files/check_mirrors_status +++ b/modules/mga-mirrors/files/check_mirrors_status @@ -100,7 +100,7 @@ def format_age(ref_time, time) return " X" unless time diff = ref_time - time - cls = nil + cls = 'broken' if diff == 0 then cls = 'ok' elsif diff < 0.5 then -- cgit v1.2.1