From dd249a87d52cc3712e8ab8382369bc5b9338c328 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 2 Apr 2025 15:28:46 +0200 Subject: [PATCH] Set cnt-limit to 20. This allows a bigger time-range for tariff, which have in principle no time-limit. --- library/src/calculator_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 5f8cef4..98693a3 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -458,7 +458,7 @@ Calculator::ComputeDurationFromCost(Configuration *cfg, arg(cost).arg(nettoParktimeForCost); 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; brutto_parking_time_in_minutes = free_parking_time_in_minutes + netto_parking_time_in_minutes;