We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16db8d4 commit b6df390Copy full SHA for b6df390
1 file changed
src/run/runner/wall_time/perf/mod.rs
@@ -7,7 +7,7 @@ pub mod perf_map;
7
pub mod unwind_data;
8
9
pub fn setup_environment() -> anyhow::Result<()> {
10
- let sysctl_read = |name: &str| -> anyhow::Result<u64> {
+ let sysctl_read = |name: &str| -> anyhow::Result<i64> {
11
let output = std::process::Command::new("sysctl").arg(name).output()?;
12
let output = String::from_utf8(output.stdout)?;
13
@@ -16,7 +16,7 @@ pub fn setup_environment() -> anyhow::Result<()> {
16
.last()
17
.context("Couldn't find the value in sysctl output")?
18
.trim()
19
- .parse::<u64>()?)
+ .parse::<i64>()?)
20
};
21
22
// Allow access to kernel symbols
0 commit comments