1
0
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:
Con Kolivas 2012-10-12 18:00:14 +11:00
parent f22fe76157
commit 13676ef11a

View File

@ -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)