Commit cba1b7e
committed
Be more consistent when removing outdated samples
When removing outdated samples, samples falling just right at the
resapmling time are used in 2 different periods.
Even if this is not technically wrong, it is unexpected, as it would be
more natural that a moving window doesn't intersect with previous moving
windows (if using one period, or after moving the window
max_data_age_in_periods_s).
Signed-off-by: Leandro Lucarella <[email protected]>1 parent 73e13d7 commit cba1b7e
File tree
2 files changed
+2
-3
lines changed- src/frequenz/sdk/timeseries
- tests/timeseries
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
| 146 | + | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
0 commit comments