From 4e2d0abb76de2435196e71b9ec60ca68d88514fb Mon Sep 17 00:00:00 2001 From: Kano Date: Tue, 3 Sep 2013 23:25:14 +1000 Subject: [PATCH] miner.php sort the mcast rigs so they are always in the same relative order --- miner.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/miner.php b/miner.php index 09ea82a5..a43d9af5 100644 --- a/miner.php +++ b/miner.php @@ -376,7 +376,7 @@ global $haderror, $error; $haderror = false; $error = null; # -function getrigs() +function mcastrigs() { global $rigs, $mcastexpect, $mcastaddr, $mcastport, $mcastcode; global $mcastlistport, $mcasttimeout, $mcastretries, $error; @@ -480,6 +480,15 @@ function getrigs() socket_close($rep_soc); } # +function getrigs() +{ + global $rigs; + + mcastrigs(); + + sort($rigs); +} +# function getsock($rig, $addr, $port) { global $rigipsecurity;