diff --git a/src/data/systeminfo.rs b/src/data/systeminfo.rs index 1a467e44..bcb25c34 100644 --- a/src/data/systeminfo.rs +++ b/src/data/systeminfo.rs @@ -108,8 +108,8 @@ impl EC2Metadata { impl CollectData for SystemInfo { fn collect_data(&mut self) -> Result<()> { - let mut sys = System::new_all(); - sys.refresh_all(); + let mut sys = System::new(); + sys.refresh_system(); self.set_system_name(sys.name().unwrap()); self.set_kernel_version(sys.kernel_version().unwrap());