Browse Source

Keep significant digits constant on displayed hashrate

master
Con Kolivas 9 years ago
parent
commit
0635c75560
  1. 2
      src/stratifier.c

2
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 */ /* Rate limit to 1 update per second */
time_counter = now_t; 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]; ch = status_chars[(counter++) & 0x3];
fprintf(stdout, "\33[2K\r%c %sH/s %.1f SPS %d users %d workers", fprintf(stdout, "\33[2K\r%c %sH/s %.1f SPS %d users %d workers",
ch, hashrate, stats->sps1, stats->users, stats->workers); ch, hashrate, stats->sps1, stats->users, stats->workers);

Loading…
Cancel
Save