Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mirrors.php
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-01-04 12:00:14 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-01-04 12:00:14 +0100
commit483a5fa0ca370be47ba35691b8037a7fa289f4a5 (patch)
tree11f31168c65b66fe35e6b53e53ddb29400a4dd2e /mirrors.php
parent92291b5afe66926f681e44dd96e9a71b5501b9b5 (diff)
finished a first simple HTML version for mirror status
Diffstat (limited to 'mirrors.php')
-rw-r--r--mirrors.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/mirrors.php b/mirrors.php
index dc69e7a..096f89c 100644
--- a/mirrors.php
+++ b/mirrors.php
@@ -275,8 +275,10 @@ EOF;
<th>Mirror URL</th>
<th>Protocol</td>
<th>Country</th>
+ <th>Completion</th>
+ <th>Delay</th>
+ <th>Last Sync</th>
EOF;
-//protocol url country country_code last_sync start delay duration_avg duration_stddev isos ipv4 ipv6 active recently_active completion_pct count score
print <<<EOF
</tr>
</thead>
@@ -297,6 +299,15 @@ EOF;
print " </span>\n";
print " " . $row["country"] . "\n";
print " </td>\n";
+ print " <td>\n";
+ print " " . $row["completion_pct"] . "\n";
+ print " </td>\n";
+ print " <td>\n";
+ print " " . $row["delay"] . "\n";
+ print " </td>\n";
+ print " <td>\n";
+ print " " . $row["last_sync"] . "\n";
+ print " </td>\n";
print " </tr>\n";
if ($oddity == "odd")
$oddity = "even";
@@ -313,6 +324,7 @@ EOF;
<pre>
EOF;
}
+// for debugging
// print json_encode($content, JSON_PRETTY_PRINT);
print <<<EOF
</pre>