From a567bb901613065701d99f575cb431ec563df2f4 Mon Sep 17 00:00:00 2001 From: Patrick Binder <47981658+gwosd@users.noreply.github.com> Date: Sat, 9 Nov 2024 20:46:32 +0100 Subject: [PATCH] Correct estimation of overall measurement frequency --- app/lib/core/measurementStats.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/core/measurementStats.dart b/app/lib/core/measurementStats.dart index b31ab58..0b8f04b 100644 --- a/app/lib/core/measurementStats.dart +++ b/app/lib/core/measurementStats.dart @@ -112,7 +112,7 @@ class MeasurementStats { /// get frequency of taking measurements (last year) double? get frequencyLastYear => _getFrequency(365); /// get frequency of taking measurements (in total) - double? get frequencyInTotal => nMeasurements / deltaTime.inDays; + double? get frequencyInTotal => nMeasurements / (deltaTime.inDays + 1); /// get weight change [kg] within last month from last measurement double? get deltaWeightLastYear => deltaWeightLastNDays(365);