From aaea5f87db0540f0461d7b1f3cfc6b694b546078 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 21 Nov 2022 15:28:05 +0100 Subject: [PATCH] Don't multiply total memory returned by sysinfo anymore sysinfo now returns bytes rather than KB --- meilisearch-http/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index a73e4ce19..82d67d5a0 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -575,7 +575,7 @@ fn total_memory_bytes() -> Option { 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 }