Browse Source

Only show one decimal place if pool diff is not an integer.

port-ckolivas
Con Kolivas 10 years ago committed by Noel Maersk
parent
commit
aca8a58f2e
  1. 2
      util.c

2
util.c

@ -1657,7 +1657,7 @@ static bool parse_diff(struct pool *pool, json_t *val) @@ -1657,7 +1657,7 @@ static bool parse_diff(struct pool *pool, json_t *val)
if ((double)idiff == diff)
applog(LOG_NOTICE, "%s difficulty changed to %d", pool->poolname ,idiff);
else
applog(LOG_NOTICE, "%s difficulty changed to %f", pool->poolname, diff);
applog(LOG_NOTICE, "%s difficulty changed to %.1f", pool->poolname, diff);
} else
applog(LOG_DEBUG, "%s difficulty set to %f", pool->poolname, diff);

Loading…
Cancel
Save