miner.php report 'Last Valid Work' as time before request
diff --git a/miner.php b/miner.php
index dd9ff39..8e79c68 100644
--- a/miner.php
+++ b/miner.php
@@ -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';