From 09987b86305e9a3bc308a922b5bd8b4c77714208 Mon Sep 17 00:00:00 2001 From: Knyffen Date: Mon, 14 Oct 2024 14:04:56 +0200 Subject: [PATCH] Change smoothing to 3 weeks --- server/src/math/calculations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/math/calculations.rs b/server/src/math/calculations.rs index e580f02..5cbb5b7 100644 --- a/server/src/math/calculations.rs +++ b/server/src/math/calculations.rs @@ -10,7 +10,7 @@ use time::Date; use time::*; const MEALS_PER_DAY: f32 = 2.3; -const SMOOTHING_DAYS: usize = 14; +const SMOOTHING_DAYS: usize = 21; fn time_date_to_chrono_naive_date(d: Date) -> chrono::NaiveDate { chrono::NaiveDate::from_ymd_opt(d.year(), d.month() as u32, d.day() as u32).unwrap()