Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

## Bug Fixes

<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
* Change 0.0 to nan if there is no data available
2 changes: 1 addition & 1 deletion src/frequenz/reporting/_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def cumulative_energy(
elif last_value_diff < 0:
production += last_value_diff
else:
consumption = production = 0.0
consumption = production = float("nan")

return CumulativeEnergy(
start_time=start_time,
Expand Down
Loading