Skip to content

Commit

Permalink
Follow procfs latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Oct 31, 2023
1 parent 1a5f1c1 commit 2a8c13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collector/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn collect() -> Metrics {
Some(bts + ((stat.starttime as f64) / *TICKS_PER_SECOND) as u64);
}
metrics.cpu_seconds_total = Some((stat.utime + stat.stime) as f64 / *TICKS_PER_SECOND);
metrics.resident_memory_bytes = Some(stat.rss_bytes());
metrics.resident_memory_bytes = Some(stat.rss_bytes().get());
metrics.virtual_memory_bytes = Some(stat.vsize);
metrics.threads = Some(stat.num_threads as u64);
}
Expand Down

0 comments on commit 2a8c13f

Please sign in to comment.