1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

GPU fan rpm display 9999 when it overflows

This commit is contained in:
Kano 2013-06-28 23:19:09 +10:00
parent 2beb30f13d
commit 2d8cc36b82

View File

@ -1284,7 +1284,8 @@ static void get_opencl_statline_before(char *buf, struct cgpu_info *gpu)
else
tailsprintf(buf, " ", gt);
if (gf != -1)
tailsprintf(buf, "%4dRPM ", gf);
// show invalid as 9999
tailsprintf(buf, "%4dRPM ", gf > 9999 ? 9999 : gf);
else if ((gp = gpu_fanpercent(gpuid)) != -1)
tailsprintf(buf, "%3d%% ", gp);
else