Browse Source

miner.php report 'Last Valid Work' as time before request

nfactor-troky
Kano 12 years ago
parent
commit
5d3faba603
  1. 8
      miner.php

8
miner.php

@ -641,6 +641,14 @@ function fmt($section, $name, $value, $when, $alldata)
$class = classlastshare($when, $alldata, $warnclass, $errorclass); $class = classlastshare($when, $alldata, $warnclass, $errorclass);
} }
break; break;
case 'GPU.Last Valid Work':
case 'PGA.Last Valid Work':
case 'DEVS.Last Valid Work':
if ($value == 0)
$ret = 'Never';
else
$ret = ($value - $when) . 's';
break;
case 'POOL.Last Share Time': case 'POOL.Last Share Time':
if ($value == 0) if ($value == 0)
$ret = 'Never'; $ret = 'Never';

Loading…
Cancel
Save