mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Only show one decimal place if pool diff is not an integer.
This commit is contained in:
parent
117c032b92
commit
aca8a58f2e
2
util.c
2
util.c
@ -1657,7 +1657,7 @@ static bool parse_diff(struct pool *pool, json_t *val)
|
|||||||
if ((double)idiff == diff)
|
if ((double)idiff == diff)
|
||||||
applog(LOG_NOTICE, "%s difficulty changed to %d", pool->poolname ,idiff);
|
applog(LOG_NOTICE, "%s difficulty changed to %d", pool->poolname ,idiff);
|
||||||
else
|
else
|
||||||
applog(LOG_NOTICE, "%s difficulty changed to %f", pool->poolname, diff);
|
applog(LOG_NOTICE, "%s difficulty changed to %.1f", pool->poolname, diff);
|
||||||
} else
|
} else
|
||||||
applog(LOG_DEBUG, "%s difficulty set to %f", pool->poolname, diff);
|
applog(LOG_DEBUG, "%s difficulty set to %f", pool->poolname, diff);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user