mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-26 22:44:21 +00:00
Make pool_disabled the first in the enums == 0, fixing the pool enabled count which compares if value is not enabled before enabling it.
This commit is contained in:
parent
25fd6cd0fd
commit
3576abf8a7
4
miner.h
4
miner.h
@ -706,9 +706,11 @@ struct curl_ent {
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Disabled needs to be the lowest enum as a freshly calloced value will then
|
||||||
|
* equal disabled */
|
||||||
enum pool_enable {
|
enum pool_enable {
|
||||||
POOL_ENABLED,
|
|
||||||
POOL_DISABLED,
|
POOL_DISABLED,
|
||||||
|
POOL_ENABLED,
|
||||||
POOL_REJECTING,
|
POOL_REJECTING,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user