mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-16 02:13:46 +12: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)));
|
||||
}
|
||||
if (out.size() > 3) {
|
||||
out = to_string((int)(out[0] - '0') + 1);
|
||||
out = to_string((int)(out[0] - '0')) + ".0";
|
||||
start++;
|
||||
}
|
||||
out.push_back(units[start][0]);
|
||||
|
|
Loading…
Reference in a new issue