Commit 4b5f56e18d46ceec1b0e71a37ebdbefdef2fae5a

kanoi 2013-08-05T03:28:44

Merge pull request #470 from kanoi/master miner.php format Best Share

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/miner.php b/miner.php
index 5db8645..10e52d1 100644
--- a/miner.php
+++ b/miner.php
@@ -962,6 +962,10 @@ function fmt($section, $name, $value, $when, $alldata)
 		if ($value != '')
 			$ret = number_format((float)$value, 2);
 		break;
+	case 'SUMMARY.Best Share':
+		if ($value != '')
+			$ret = number_format((float)$value);
+		break;
 	}
 
  if ($section == 'NOTIFY' && substr($name, 0, 1) == '*' && $value != '0')