From 3969fb0fe0232f0aedcb20ceffbc3f51cf274852 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 20 Jan 2012 21:38:31 +0000 Subject: Display if emi is still running --- index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'index.php') 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('

Upload in progress for %s.

', timediff($upload_time)); +} + $buildtime_stats = array(); $s = ''; -- cgit v1.2.1