Browse Source

Use only 3 significant digits for sps display.

master
Con Kolivas 8 years ago
parent
commit
6ce8b5eef7
  1. 2
      src/stratifier.c

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

Loading…
Cancel
Save