Skip to content

Commit

Permalink
Better Hourly price checking
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmocuz committed May 31, 2024
1 parent 2b4acd0 commit de42cb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/mainworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1716,6 +1716,7 @@ void MainWorker::Do_Work()
//check for 5 minute schedule
if (ltime.tm_min % m_sql.m_ShortLogInterval == 0)
{
HandleHourPrice();
m_sql.ScheduleShortlog();
}
std::string szPwdResetFile = szStartupFolder + "resetpwd";
Expand Down Expand Up @@ -14061,6 +14062,7 @@ void MainWorker::HandleHourPrice()
//Make sure the prices are actual
Enever* pEnever = dynamic_cast<Enever*>(const_cast<CDomoticzHardwareBase*>(pHardware));
pEnever->ActualizePrices();
result = m_sql.safe_query("SELECT HardwareID, Type, SubType, sValue, LastUpdate, AddjValue2 FROM DeviceStatus WHERE (ID==%" PRIu64 ")", iHP_E_Idx);
}
}

Expand Down

0 comments on commit de42cb6

Please sign in to comment.