1
0
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:
Con Kolivas 2014-02-07 08:33:00 +11:00 committed by Noel Maersk
parent 117c032b92
commit aca8a58f2e

2
util.c
View File

@ -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);