Skip to content

Commit

Permalink
Merge pull request #609 from scorpion-26/byteconv
Browse files Browse the repository at this point in the history
Fix short conversion of 1000-1023 *iB
  • Loading branch information
aristocratos committed Sep 5, 2023
2 parents 31be436 + f798acd commit 0cac861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/btop_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 0cac861

Please sign in to comment.