From 0635c75560ee1823650d81008da2385f69843624 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 27 Nov 2015 14:30:49 +1100 Subject: [PATCH] Keep significant digits constant on displayed hashrate --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 6274e488..f93d0f99 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -699,7 +699,7 @@ static void _ckdbq_add(ckpool_t *ckp, const int idtype, json_t *val, const char /* Rate limit to 1 update per second */ time_counter = now_t; - suffix_string(stats->dsps1 * nonces, hashrate, 16, 0); + suffix_string(stats->dsps1 * nonces, hashrate, 16, 3); ch = status_chars[(counter++) & 0x3]; fprintf(stdout, "\33[2K\r%c %sH/s %.1f SPS %d users %d workers", ch, hashrate, stats->sps1, stats->users, stats->workers);