From 39f4fe06ceceed1b6bfb95efa5353ccbef0e7aa4 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 27 Jan 2015 08:21:46 +1100 Subject: [PATCH] php - display pool uptime on Pool->Stats --- pool/page_stats.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pool/page_stats.php b/pool/page_stats.php index 90768813..6c44c3ed 100644 --- a/pool/page_stats.php +++ b/pool/page_stats.php @@ -15,6 +15,13 @@ function dostats($data, $user) if (isset($data['info']) && $data['info'] !== false) { $info = $data['info']; + + if (isset($info['p_elapsed'])) + { + $dspel = howlongago($info['p_elapsed']); + $pg .= "Pool Uptime: $dspel
"; + } + $dsp = '?THs'; $dsp5m = '?THs'; $dsp1hr = '?THs';