Commit 4887025a99f64ba4e5254bf8b7725ca904e3ac86

Con Kolivas 2014-02-07T08:33:00

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 1cda5f0..8c50f09 100644
--- a/util.c
+++ b/util.c
@@ -1659,7 +1659,7 @@ static bool parse_diff(struct pool *pool, json_t *val)
 			applog(LOG_NOTICE, "Pool %d difficulty changed to %d",
 			       pool->pool_no, idiff);
 		else
-			applog(LOG_NOTICE, "Pool %d difficulty changed to %f",
+			applog(LOG_NOTICE, "Pool %d difficulty changed to %.1f",
 			       pool->pool_no, diff);
 	} else
 		applog(LOG_DEBUG, "Pool %d difficulty set to %f", pool->pool_no,