Skip to content

skip over cgroup.pressure file #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timo
Copy link

@timo timo commented Mar 9, 2024

it only contains a single number, 0 or 1, to indicate whether pressure stall informaiton is turned on or off for the cgroup. The unexpected format causes a panic:

thread 'main' panicked at src/main.rs:211:33:
called `Result::unwrap()` on an `Err` value: PsiParseError(UnexpectedTerm("1"))
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::unwrap
             at /builddir/build/BUILD/rustc-1.76.0-src/library/core/src/result.rs:1073:23
   4: psi_exporter::get_service_measurements
             at ./src/main.rs:211:26
   5: psi_exporter::main
             at ./src/main.rs:60:33
   6: core::ops::function::FnOnce::call_once
             at /builddir/build/BUILD/rustc-1.76.0-src/library/core/src/ops/function.rs:250:5

it only contains a single number, 0 or 1, to indicate whether
pressure stall informaiton is turned on or off for the cgroup.
The unexpected format causes a panic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant