Conversation
Accept Error returns from psutil::memory::swap_memory() and record an empty swap statistic. Fixes an uwrap() panic on machines without any swap enabled.
Result of running `cargo fmt`.
|
This sounds like it's actually a bug with rust-psutil. Could you post the error message you get? |
|
The CI failure is a clippy warning about unrelated code. in disk.rs. Happy to fix, but not related to this pr. |
|
Error message: |
|
possibly something is odd with the kernel; as you can see, the swap-related lines aren't present in |
|
Hmm, yeah I'll have to dig into it tomorrow. Could you also post the output of |
|
It looks like the The relevant |
|
Very interesting, thanks for the links. I think the best way to go about this is to make the missing fields optional in rust psutil. |
|
Ok, let me know if you want anything tested. |
Accept Error returns from
psutil::memory::swap_memory()and recordan empty swap statistic. Fixes an
unwrap()panic on machines withoutany swap enabled.