From aca8a58f2e2605c476652ad0d501df3caaa630b1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 7 Feb 2014 08:33:00 +1100 Subject: [PATCH] Only show one decimal place if pool diff is not an integer. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index b5420533..67a5ec29 100644 --- a/util.c +++ b/util.c @@ -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);