diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-01-20 21:38:31 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-01-20 21:38:31 +0000 |
commit | 3969fb0fe0232f0aedcb20ceffbc3f51cf274852 (patch) | |
tree | e4a702f58e7062d01a58651c6c1d38b5f5162ad7 /index.php | |
parent | 65d6c836b67093e9495e6643efd9d040e024977c (diff) | |
download | pkgsubmit-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.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 = ''; |