From 5c426d34bcddc9ef198f8da968ac34ae16692776 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 4 Sep 2012 13:42:16 +0000 Subject: new get_upload_time() --- test_index.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'test_index.php') diff --git a/test_index.php b/test_index.php index fa83a4e..2382330 100644 --- a/test_index.php +++ b/test_index.php @@ -170,15 +170,7 @@ if ($total > 0) { } } -// check if emi is running -$upload_time = null; -$stat = null; -if (file_exists('/var/lib/schedbot/tmp/upload')) { - $stat = stat('/var/lib/schedbot/tmp/upload'); - if ($stat) { - $upload_time = $stat['mtime']; - } -} +$upload_time = get_upload_time(); $last_pkg = ($_GET['last'] && $total > 0) ? reset($pkgs) : null publish_stats_headers($stats, $last_pkg); -- cgit v1.2.1