mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 05:41:55 +00:00
api.c MMQ stat bugs
This commit is contained in:
parent
913221c373
commit
836b76a0d6
6
api.c
6
api.c
@ -912,11 +912,11 @@ static void pgastatus(int pga, bool isjson)
|
|||||||
for (i = 0; i < tc; i++) {
|
for (i = 0; i < tc; i++) {
|
||||||
struct thr_info *thr = cgpu->thr[i];
|
struct thr_info *thr = cgpu->thr[i];
|
||||||
struct modminer_fpga_state *state = thr->cgpu_data;
|
struct modminer_fpga_state *state = thr->cgpu_data;
|
||||||
if (temp && ((state->temp + 0x30) > temp))
|
if (state->temp > temp)
|
||||||
temp = state->temp + 0x30;
|
temp = state->temp;
|
||||||
frequency += state->clock;
|
frequency += state->clock;
|
||||||
}
|
}
|
||||||
frequency /= tc;
|
frequency /= (tc ? tc : 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user