diff --git a/src/collector/linux.rs b/src/collector/linux.rs index 433355e..c26c49b 100644 --- a/src/collector/linux.rs +++ b/src/collector/linux.rs @@ -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); }