mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 19:44:21 +00:00
api.c bug - remove extra ']'s in notify command
This commit is contained in:
parent
5cf4e188fd
commit
01c93bc1d4
2
api.c
2
api.c
@ -1875,7 +1875,7 @@ void notifystatus(int device, struct cgpu_info *cgpu, bool isjson)
|
|||||||
// ALL counters (and only counters) must start the name with a '*'
|
// ALL counters (and only counters) must start the name with a '*'
|
||||||
// Simplifies future external support for adding new counters
|
// Simplifies future external support for adding new counters
|
||||||
sprintf(buf, isjson
|
sprintf(buf, isjson
|
||||||
? "%s{\"NOTIFY\":%d,\"Name\":\"%s\",\"ID\":%d,\"Last Well\":%lu,\"Last Not Well\":%lu,\"Reason Not Well\":\"%s\",\"*Thread Fail Init\":%d,\"*Thread Zero Hash\":%d,\"*Thread Fail Queue\":%d,\"*Dev Sick Idle 60s\":%d,\"*Dev Dead Idle 600s\":%d,\"*Dev Nostart\":%d,\"*Dev Over Heat\":%d,\"*Dev Thermal Cutoff\":%d}" JSON_CLOSE
|
? "%s{\"NOTIFY\":%d,\"Name\":\"%s\",\"ID\":%d,\"Last Well\":%lu,\"Last Not Well\":%lu,\"Reason Not Well\":\"%s\",\"*Thread Fail Init\":%d,\"*Thread Zero Hash\":%d,\"*Thread Fail Queue\":%d,\"*Dev Sick Idle 60s\":%d,\"*Dev Dead Idle 600s\":%d,\"*Dev Nostart\":%d,\"*Dev Over Heat\":%d,\"*Dev Thermal Cutoff\":%d}"
|
||||||
: "%sNOTIFY=%d,Name=%s,ID=%d,Last Well=%lu,Last Not Well=%lu,Reason Not Well=%s,*Thread Fail Init=%d,*Thread Zero Hash=%d,*Thread Fail Queue=%d,*Dev Sick Idle 60s=%d,*Dev Dead Idle 600s=%d,*Dev Nostart=%d,*Dev Over Heat=%d,*Dev Thermal Cutoff=%d" SEPSTR,
|
: "%sNOTIFY=%d,Name=%s,ID=%d,Last Well=%lu,Last Not Well=%lu,Reason Not Well=%s,*Thread Fail Init=%d,*Thread Zero Hash=%d,*Thread Fail Queue=%d,*Dev Sick Idle 60s=%d,*Dev Dead Idle 600s=%d,*Dev Nostart=%d,*Dev Over Heat=%d,*Dev Thermal Cutoff=%d" SEPSTR,
|
||||||
(isjson && (device > 0)) ? COMMA : BLANK,
|
(isjson && (device > 0)) ? COMMA : BLANK,
|
||||||
device, cgpu->api->name, cgpu->device_id,
|
device, cgpu->api->name, cgpu->device_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user