From aabbc4fd95e77cf80456f71d86507e08ce542585 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sun, 12 Sep 2021 13:48:01 -0400 Subject: [PATCH] bug: fix crashes for kernel patch versions > 255 (#575) Solved by updating procfs to 0.10.1. Thanks to hasali19 for finding and looking into this! --- CHANGELOG.md | 7 ++++++- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c0a1e5e..8b655881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Changes -- [#557](https://github.com/ClementTsang/bottom/pull/557): Add '/s' to network usage legend. +- [#557](https://github.com/ClementTsang/bottom/pull/557): Add '/s' to network usage legend to better indicate that it's a per-second change. + +## Bug Fixes + +- [#575](https://github.com/ClementTsang/bottom/pull/575): Updates the procfs library to not crash on kernel version >255. ## Internal Changes - [#551](https://github.com/ClementTsang/bottom/pull/551): Disable AUR package generation in release pipeline since it's now in community. +- [#570](https://github.com/ClementTsang/bottom/pull/570): Make battery features optional in compilation. ## [0.6.3] - 2021-07-18 diff --git a/Cargo.lock b/Cargo.lock index d4b77036..43480929 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1201,9 +1201,9 @@ dependencies = [ [[package]] name = "procfs" -version = "0.9.1" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab8809e0c18450a2db0f236d2a44ec0b4c1412d0eb936233579f0990faa5d5cd" +checksum = "95e344cafeaeefe487300c361654bcfc85db3ac53619eeccced29f5ea18c4c70" dependencies = [ "bitflags", "byteorder", diff --git a/Cargo.toml b/Cargo.toml index ad710d62..56f7e3fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ libc = "0.2.86" [target.'cfg(target_os = "linux")'.dependencies] heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "net", "sensors"] } -procfs = "0.9.1" +procfs = "0.10.1" smol = "1.2.5" [target.'cfg(target_os = "macos")'.dependencies]