# fix: floor fractional day bounds in cost model aggregation \(\#147\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/a7f97f7b37c5297a1d379e6eba2c2bd3ec2f32bb)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: a7f97f7b37c5297a1d379e6eba2c2bd3ec2f32bb

Requested commit: a7f97f7b37c5297a1d379e6eba2c2bd3ec2f32bb

Commit: a7f97f7b37c5297a1d379e6eba2c2bd3ec2f32bb

Tree: 7972484c81536e5a35feb5a51d1d34fa3354f908

Author: Simone

Committer: GitHub

## Message

```
fix: floor fractional day bounds in cost model aggregation (#147)

normalizeCostModels used the bounded day count directly as the first-day
index, so a fractional window (e.g. 2.5) left every loop index fractional,
missed all day lookups, and silently dropped every model row. Floor the
bound like normalizeCostDaily and fillMissingCostDays already do, and pin
the behavior with a direct QtTest.
```

## Parents

- [d4c1c95542710f47c12fbd90fc199aa2159a34ed](https://git.cafe/lucenx/codexbar-plasma/commit/d4c1c95542710f47c12fbd90fc199aa2159a34ed?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/a7f97f7b37c5297a1d379e6eba2c2bd3ec2f32bb?format=markdown)
