Commit 6b3848b1 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

[BUG: 1529] monitor: fix printing 64bit values

When a number contains "0" on 9th and adjacent lower decimal position
these 0's were not printed.
In practice number:
1000000000 was badly printed as 10
1000000001 was badly printed as 11
1000234567 was badly printed as 1234567
1234567890 was correctly printed as 1234567890
1200000000 was correctly printed as 1200000000

Both stat and gui were affected by this bug.
Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent 970aef95
......@@ -41,7 +41,7 @@ static char* print64(uint64_t x)
l_half = __div64_32(&x, PRINT64_FACTOR);
h_half = (uint32_t) x;
sprintf(buf, "%u%u", h_half, l_half);
sprintf(buf, "%u%09u", h_half, l_half);
return buf;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment