Skip to content

Commit

Permalink
Correct estimation of overall measurement frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
gwosd committed Nov 9, 2024
1 parent 684a622 commit a567bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/core/measurementStats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a567bb9

Please sign in to comment.