mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Left align values that are suffix_string generated.
This commit is contained in:
parent
f22fe76157
commit
13676ef11a
@ -1518,7 +1518,7 @@ static void suffix_string(uint64_t val, char *buf, int sigdigits)
|
||||
if (!sigdigits)
|
||||
sprintf(buf, "%d%s", (unsigned int)dval, suffix);
|
||||
else
|
||||
sprintf(buf, "%.*g%s", sigdigits, dval, suffix);
|
||||
sprintf(buf, "%-*.*g%s", sigdigits + 1, sigdigits, dval, suffix);
|
||||
}
|
||||
|
||||
static void get_statline(char *buf, struct cgpu_info *cgpu)
|
||||
|
Loading…
Reference in New Issue
Block a user