Commit 597f5fa3897ff9f8a9e0ec16011e3f1330e47379

Kano 2012-06-25T18:12:00

miner.php add 'restart' next to 'quit'

diff --git a/miner.php b/miner.php
index cdcfbac..b7a954d 100644
--- a/miner.php
+++ b/miner.php
@@ -904,13 +904,14 @@ function doOne($rig, $preprocess)
  echo "<input type=button value='Refresh' onclick='pr(\"?rig=$rig\",null)'></td>";
  if (count($rigs) > 1)
 	echo "<td><input type=button value='Summary' onclick='pr(\"\",null)'></td>";
- echo "<td width=100%>&nbsp;</td><td>";
+ echo "<td width=100%>&nbsp;</td><td nowrap>";
  if ($readonly === false)
  {
-	$msg = 'Quit CGMiner';
+	$rg = '';
 	if (count($rigs) > 1)
-		$msg .= " Rig $rig";
-	echo "<input type=button value='Quit' onclick='prc(\"quit&rig=$rig\",\"$msg\")'>";
+		$rg .= " Rig $rig";
+	echo "<input type=button value='Restart' onclick='prc(\"restart&rig=$rig\",\"Restart CGMiner$rg\")'>";
+	echo "&nbsp;<input type=button value='Quit' onclick='prc(\"quit&rig=$rig\",\"Quit CGMiner$rg\")'>";
  }
  echo "</td></tr></table></td></tr>";