mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 08:48:01 +00:00
miner.php sort the mcast rigs so they are always in the same relative order
This commit is contained in:
parent
e2829f0c8e
commit
4e2d0abb76
11
miner.php
11
miner.php
@ -376,7 +376,7 @@ global $haderror, $error;
|
|||||||
$haderror = false;
|
$haderror = false;
|
||||||
$error = null;
|
$error = null;
|
||||||
#
|
#
|
||||||
function getrigs()
|
function mcastrigs()
|
||||||
{
|
{
|
||||||
global $rigs, $mcastexpect, $mcastaddr, $mcastport, $mcastcode;
|
global $rigs, $mcastexpect, $mcastaddr, $mcastport, $mcastcode;
|
||||||
global $mcastlistport, $mcasttimeout, $mcastretries, $error;
|
global $mcastlistport, $mcasttimeout, $mcastretries, $error;
|
||||||
@ -480,6 +480,15 @@ function getrigs()
|
|||||||
socket_close($rep_soc);
|
socket_close($rep_soc);
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
function getrigs()
|
||||||
|
{
|
||||||
|
global $rigs;
|
||||||
|
|
||||||
|
mcastrigs();
|
||||||
|
|
||||||
|
sort($rigs);
|
||||||
|
}
|
||||||
|
#
|
||||||
function getsock($rig, $addr, $port)
|
function getsock($rig, $addr, $port)
|
||||||
{
|
{
|
||||||
global $rigipsecurity;
|
global $rigipsecurity;
|
||||||
|
Loading…
Reference in New Issue
Block a user