diff options
author | Jakob P. Liljenberg <admin@qvantnet.com> | 2023-09-05 19:27:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 19:27:38 +0200 |
commit | 0cac8619105521999d603efaeb7d7eed8c38d746 (patch) | |
tree | 3e994cd34cf4497bd5f672b1604af8dd4cda7f8c | |
parent | 31be4362ce122182862ac338a9a479cde3a4c8e2 (diff) | |
parent | f798acdaf71455684883df0ffb31d29293f788b2 (diff) |
Merge pull request #609 from scorpion-26/byteconv
Fix short conversion of 1000-1023 *iB
-rw-r--r-- | src/btop_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btop_tools.cpp b/src/btop_tools.cpp index e642ac6..f6be174 100644 --- a/src/btop_tools.cpp +++ b/src/btop_tools.cpp @@ -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]); |