mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Don't multiply total memory returned by sysinfo anymore
sysinfo now returns bytes rather than KB
This commit is contained in:
parent
44440bb8f4
commit
aaea5f87db
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user