Skip to content

Commit 4342dde

Browse files
fix: Update bytesize to 2.0.1 to resolve SI / IEC inversion (#185)
In Bytesize 1.3, the effect of `si_unit` argument in `to_string_as()` function is inverted. This pull request update it to 2.0.1 to solve this problem.
1 parent ae88b94 commit 4342dde

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ratatui = { version = "0.29.0", default-features = false, features = [
1818
"termion",
1919
] }
2020
termion = "4.0.3"
21-
bytesize = "1.3.0"
21+
bytesize = "2.0.1"
2222
unicode-width = "0.1.14"
2323
colorsys = "0.6.7"
2424
enum-iterator = "2.1.0"

src/kernel/lkm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl KernelModules<'_> {
123123
used_modules.pop();
124124
}
125125
let module_size =
126-
ByteSize::b(columns[1].parse().unwrap_or(0)).to_string_as(true);
126+
ByteSize::b(columns[1].parse().unwrap_or(0)).to_string();
127127
module_list.push(vec![module_name, module_size, used_modules]);
128128
}
129129
// Reverse the kernel modules if the argument is provided.

0 commit comments

Comments
 (0)