From fc2f23d36c92fef9884a99ca635f8db422b53ea5 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 28 Oct 2021 12:54:57 +0200 Subject: [PATCH] move the start_since_days to teh root of the identify --- 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 150793df7..c5f8a64af 100644 --- a/meilisearch-http/src/analytics/segment_analytics.rs +++ b/meilisearch-http/src/analytics/segment_analytics.rs @@ -93,12 +93,12 @@ impl SegmentAnalytics { .collect::>(); json!({ + "start_since_days": FIRST_START_TIMESTAMP.elapsed().as_secs() / (60 * 60 * 24), // one day "system": *SYSTEM, "stats": { "database_size": stats.database_size, "indexes_number": stats.indexes.len(), "documents_number": number_of_documents, - "start_since_days": FIRST_START_TIMESTAMP.elapsed().as_secs() / (60 * 60 * 24), // one day }, "infos": infos, })