1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 00:38:02 +00:00

miner.php sort the mcast rigs so they are always in the same relative order

This commit is contained in:
Kano 2013-09-03 23:25:14 +10:00
parent e2829f0c8e
commit 4e2d0abb76

View File

@ -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;