mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +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)
|
if (!sigdigits)
|
||||||
sprintf(buf, "%d%s", (unsigned int)dval, suffix);
|
sprintf(buf, "%d%s", (unsigned int)dval, suffix);
|
||||||
else
|
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)
|
static void get_statline(char *buf, struct cgpu_info *cgpu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user