From 6ce8b5eef71f07831405a9f18a9fb259d047998a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 21 Apr 2017 12:45:57 +1000 Subject: [PATCH] Use only 3 significant digits for sps display. --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index de1aabdd..04359ab0 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -8359,7 +8359,7 @@ static void *statsupdate(void *arg) "SPS5m", stats->sps5, "SPS15m", stats->sps15, "SPS1h", stats->sps60); - s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER); + s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER | JSON_REAL_PRECISION(3)); json_decref(val); LOGNOTICE("Pool:%s", s); fprintf(fp, "%s\n", s);