summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-01-20 21:38:31 +0000
committerPascal Terjan <pterjan@mageia.org>2012-01-20 21:38:31 +0000
commit3969fb0fe0232f0aedcb20ceffbc3f51cf274852 (patch)
treee4a702f58e7062d01a58651c6c1d38b5f5162ad7 /index.php
parent65d6c836b67093e9495e6643efd9d040e024977c (diff)
downloadpkgsubmit-3969fb0fe0232f0aedcb20ceffbc3f51cf274852.tar
pkgsubmit-3969fb0fe0232f0aedcb20ceffbc3f51cf274852.tar.gz
pkgsubmit-3969fb0fe0232f0aedcb20ceffbc3f51cf274852.tar.bz2
pkgsubmit-3969fb0fe0232f0aedcb20ceffbc3f51cf274852.tar.xz
pkgsubmit-3969fb0fe0232f0aedcb20ceffbc3f51cf274852.zip
Display if emi is still running
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index 23386d1..66f4846 100644
--- a/index.php
+++ b/index.php
@@ -227,6 +227,13 @@ if ($total > 0) {
}
}
+// check if emi is running
+$stat = stat("/var/lib/schedbot/tmp/upload");
+if ($stat) {
+ $upload_time = $stat['mtime'];
+}
+
+// publish stats as headers
foreach ($stats as $k => $v) {
Header("X-BS-Queue-$k: $v");
}
@@ -305,6 +312,10 @@ echo sprintf(
#########################################
+if ($upload_time) {
+ echo sprintf('<p>Upload in progress for %s.</p>', timediff($upload_time));
+}
+
$buildtime_stats = array();
$s = '';