mirror of
https://github.com/aristocratos/btop.git
synced 2024-11-01 05:11:03 +01:00
Merge pull request #609 from scorpion-26/byteconv
Fix short conversion of 1000-1023 *iB
This commit is contained in:
commit
0cac861910
@ -443,7 +443,7 @@ namespace Tools {
|
|||||||
out = to_string((int)round(stod(out)));
|
out = to_string((int)round(stod(out)));
|
||||||
}
|
}
|
||||||
if (out.size() > 3) {
|
if (out.size() > 3) {
|
||||||
out = to_string((int)(out[0] - '0') + 1);
|
out = to_string((int)(out[0] - '0')) + ".0";
|
||||||
start++;
|
start++;
|
||||||
}
|
}
|
||||||
out.push_back(units[start][0]);
|
out.push_back(units[start][0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user