Skip to content

Commit

Permalink
Merge branch 'development' of github.com:domoticz/domoticz into devel…
Browse files Browse the repository at this point in the history
…opment
  • Loading branch information
gizmocuz committed May 31, 2024
2 parents cd76f80 + bc82e5c commit 2b4acd0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions main/mainworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,11 @@ void MainWorker::Do_Work()
struct tm ltime;
localtime_r(&atime, &ltime);

if (ltime.tm_hour != _ScheduleLastHour)
{
HandleHourPrice();
}

if (ltime.tm_min != _ScheduleLastMinute)
{
minute_counter++;
Expand Down Expand Up @@ -1772,14 +1777,6 @@ void MainWorker::Do_Work()
HandleAutomaticBackups();
}
}

if (
(minute_counter % 5 == 0)
|| (m_hourPriceElectricity.timestamp == 0)
)
{
HandleHourPrice();
}
}
if (heartbeat_counter++ > 12)
{
Expand Down

0 comments on commit 2b4acd0

Please sign in to comment.