Browse Source

php - display pool uptime on Pool->Stats

master
kanoi 10 years ago
parent
commit
39f4fe06ce
  1. 7
      pool/page_stats.php

7
pool/page_stats.php

@ -15,6 +15,13 @@ function dostats($data, $user)
if (isset($data['info']) && $data['info'] !== false) if (isset($data['info']) && $data['info'] !== false)
{ {
$info = $data['info']; $info = $data['info'];
if (isset($info['p_elapsed']))
{
$dspel = howlongago($info['p_elapsed']);
$pg .= "Pool Uptime: $dspel<br>";
}
$dsp = '?THs'; $dsp = '?THs';
$dsp5m = '?THs'; $dsp5m = '?THs';
$dsp1hr = '?THs'; $dsp1hr = '?THs';

Loading…
Cancel
Save