summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ca0d9d)
TariffChangeIsAllow() function decfinition. The brackets added in
construction if ((currentTime > timeout) && (timeout != 0)).
return tariffData.dirPrice[dir].priceDayA;
}
//-----------------------------------------------------------------------------
return tariffData.dirPrice[dir].priceDayA;
}
//-----------------------------------------------------------------------------
-std::string TARIFF_IMPL::TariffChangeIsAllowed(const TARIFF & to) const
+std::string TARIFF_IMPL::TariffChangeIsAllowed(const TARIFF & to, time_t currentTime) const
{
time_t timeout = GetChangePolicyTimeout();
{
time_t timeout = GetChangePolicyTimeout();
-if (stgTime > timeout && timeout != 0)
+if ((currentTime > timeout) && (timeout != 0))
return "";
switch (GetChangePolicy())
{
return "";
switch (GetChangePolicy())
{