1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-13 08:17:59 +00:00

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

This commit is contained in:
Kano 2013-03-03 20:30:44 +11:00
parent 41f099edff
commit 5d3faba603

View File

@ -641,6 +641,14 @@ function fmt($section, $name, $value, $when, $alldata)
$class = classlastshare($when, $alldata, $warnclass, $errorclass);
}
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':
if ($value == 0)
$ret = 'Never';