From 847fcb570b3cd3e23f370ff80de6fd085a89aefe Mon Sep 17 00:00:00 2001 From: Guillaume Mourier Date: Thu, 4 Nov 2021 08:03:11 +0100 Subject: [PATCH] Use total_space of the largest disk instead of available_space --- meilisearch-http/src/analytics/segment_analytics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/analytics/segment_analytics.rs b/meilisearch-http/src/analytics/segment_analytics.rs index 8d81bfacf..b77491906 100644 --- a/meilisearch-http/src/analytics/segment_analytics.rs +++ b/meilisearch-http/src/analytics/segment_analytics.rs @@ -187,7 +187,7 @@ impl Segment { "kernel_version": kernel_version, "cores": sys.processors().len(), "ram_size": sys.total_memory(), - "disk_size": sys.disks().iter().map(|disk| disk.available_space()).max(), + "disk_size": sys.disks().iter().map(|disk| disk.total_space()).max(), "server_provider": std::env::var("MEILI_SERVER_PROVIDER").ok(), }) });