Don't multiply total memory returned by sysinfo anymore

sysinfo now returns bytes rather than KB
This commit is contained in:
Louis Dureuil 2022-11-21 15:28:05 +01:00
parent 44440bb8f4
commit aaea5f87db
No known key found for this signature in database

View File

@ -575,7 +575,7 @@ fn total_memory_bytes() -> Option<u64> {
let memory_kind = RefreshKind::new().with_memory();
let mut system = System::new_with_specifics(memory_kind);
system.refresh_memory();
Some(system.total_memory() * 1024) // KiB into bytes
Some(system.total_memory())
} else {
None
}