php - display pool uptime on Pool->Stats
This commit is contained in:
parent
f3d3c11869
commit
39f4fe06ce
@ -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<br>";
|
||||
}
|
||||
|
||||
$dsp = '?THs';
|
||||
$dsp5m = '?THs';
|
||||
$dsp1hr = '?THs';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user