From 9cd010782f1d9a87ce2c3bda441aefae851edf19 Mon Sep 17 00:00:00 2001 From: Kano Date: Sat, 2 Jun 2012 01:25:27 +1000 Subject: [PATCH] miner.php highlight devs too slow finding shares (possibly failing) --- miner.php | 339 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 224 insertions(+), 115 deletions(-) diff --git a/miner.php b/miner.php index 2441cad8..3372d391 100644 --- a/miner.php +++ b/miner.php @@ -2,6 +2,7 @@ session_start(); # global $miner, $port, $readonly, $notify, $rigs, $socktimeoutsec; +global $checklastshare; # # Don't touch these 2 - see $rigs below $miner = null; @@ -17,6 +18,13 @@ $readonly = false; # coz it doesn't have notify - it just shows the error status table $notify = true; # +# set $checklastshare to true to do the following checks: +# If a device's last share is 12x expected ago then display as an error +# If a device's last share is 8x expected ago then display as a warning +# If either of the above is true, also display the whole line highlighted +# This assumes shares are 1 difficulty shares +$checklastshare = true; +# # Set $rigs to an array of your cgminer rigs that are running # format: 'IP:Port' or 'Host:Port' # If you only have one rig, it will just show the detail of that rig @@ -70,6 +78,7 @@ td.err { color:black; font-family:verdana,arial,sans; font-size:13pt; background td.warn { color:black; font-family:verdana,arial,sans; font-size:13pt; background:#ffb050 } td.sta { color:green; font-family:verdana,arial,sans; font-size:13pt; } td.tot { color:blue; font-family:verdana,arial,sans; font-size:13pt; background:#fff8f2 } +td.lst { color:blue; font-family:verdana,arial,sans; font-size:13pt; background:#ffffdd }