Set cnt-limit to 20. This allows a bigger time-range for tariff, which
have in principle no time-limit.
This commit is contained in:
parent
575885c19e
commit
dd249a87d5
@ -458,7 +458,7 @@ Calculator::ComputeDurationFromCost(Configuration *cfg,
|
|||||||
arg(cost).arg(nettoParktimeForCost);
|
arg(cost).arg(nettoParktimeForCost);
|
||||||
|
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
while (++cnt < 10 && netto_parking_time_in_minutes < nettoParktimeForCost) {
|
while (++cnt < 20 && netto_parking_time_in_minutes < nettoParktimeForCost) {
|
||||||
// qCritical() << __func__ << ":" << __LINE__ << "cnt [" << cnt;
|
// qCritical() << __func__ << ":" << __LINE__ << "cnt [" << cnt;
|
||||||
|
|
||||||
brutto_parking_time_in_minutes = free_parking_time_in_minutes + netto_parking_time_in_minutes;
|
brutto_parking_time_in_minutes = free_parking_time_in_minutes + netto_parking_time_in_minutes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user