File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ async def energy_update(self) -> EnergyStatistics | None: # noqa: PLR0911 PLR09
453453 return None
454454
455455 async def _get_initial_energy_logs (self ) -> None :
456- """Collect initial energy logs from the last 10 log addresses ."""
456+ """Collect initial energy logs for recent hours up to MAX_LOG_HOURS/2 (or hours elapsed today) ."""
457457 if self ._current_log_address is None :
458458 return
459459
@@ -547,7 +547,7 @@ async def energy_log_update(self, address: int | None) -> bool:
547547 if (
548548 log_timestamp is None
549549 or log_pulses is None
550- # Don't store an old log- record; store am empty record instead
550+ # Don't store an old log record; store am empty record instead
551551 or not self ._check_timestamp_is_recent (address , _slot , log_timestamp )
552552 ):
553553 self ._energy_counters .add_empty_log (response .log_address , _slot )
You can’t perform that action at this time.
0 commit comments