aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/files/check_mirrors_status
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mga-mirrors/files/check_mirrors_status')
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index 11145e0e..9c00ac8d 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -71,8 +71,8 @@ def fetch_url(url, redirect_limit = 3)
else
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
- http.open_timeout = 9
- http.read_timeout = 9
+ http.open_timeout = 30
+ http.read_timeout = 30
if uri.scheme == 'https' then
http.use_ssl = true
end
@@ -140,7 +140,7 @@ def format_age(ref_time, time)
end
def print_output(archs_per_distro, mirrors, ref_times, times)
- puts "<html><head><title>Mageia Mirror Status #{Time.now.strftime("%F")}</title>
+ puts "<html><head><title>Mageia Mirror Status #{Time.now.utc.strftime("%F")}</title>
<link rel=\"icon\" type=\"image/png\" href=\"//www.mageia.org/g/favicon.png\">
<style>
td.broken {background-color:#FF0033;}
@@ -158,7 +158,7 @@ th {background-color:#EEEEEE;}
</style>
</head>
<body>"
- puts "Last checked on #{Time.now.strftime("%F %R %Z")}<br/>"
+ puts "Last checked on #{Time.now.utc.strftime("%F %R %Z")}<br/>"
puts "<table class='legend'><tr><td class='ok'>Up to date</td><td class='almost'>Less than 12h old</td><td class='bad'>Less than 2 days old</td><td class='broken'>Old or broken</td></tr></table>"
puts "<table><thead>"
puts "<tr><td/>"
@@ -210,8 +210,7 @@ end
ref = 'http://repository.mageia.org/'
archs_per_distro = {
'cauldron' => ['i686', 'x86_64', 'armv7hl', 'aarch64'],
- '9' => ['i586', 'x86_64', 'armv7hl', 'aarch64'],
- '8' => ['i586', 'x86_64', 'armv7hl', 'aarch64']
+ '9' => ['i586', 'x86_64', 'armv7hl', 'aarch64']
}
parallel = 8