move the start_since_days to teh root of the identify

This commit is contained in:
Tamo 2021-10-28 12:54:57 +02:00 committed by marin postma
parent 7c39fab453
commit fc2f23d36c
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9
1 changed files with 1 additions and 1 deletions

View File

@ -93,12 +93,12 @@ impl SegmentAnalytics {
.collect::<Vec<u64>>(); .collect::<Vec<u64>>();
json!({ json!({
"start_since_days": FIRST_START_TIMESTAMP.elapsed().as_secs() / (60 * 60 * 24), // one day
"system": *SYSTEM, "system": *SYSTEM,
"stats": { "stats": {
"database_size": stats.database_size, "database_size": stats.database_size,
"indexes_number": stats.indexes.len(), "indexes_number": stats.indexes.len(),
"documents_number": number_of_documents, "documents_number": number_of_documents,
"start_since_days": FIRST_START_TIMESTAMP.elapsed().as_secs() / (60 * 60 * 24), // one day
}, },
"infos": infos, "infos": infos,
}) })