This commit is contained in:
Gerhard Hoffmann 2023-10-11 15:49:45 +02:00
parent ff1dc4a10c
commit cb78e27d37

View File

@ -39,10 +39,13 @@ int main() {
QDateTime start = QDateTime::currentDateTime();
time_t start_parking_time = start.toSecsSinceEpoch() / 60;
// int timeSteps[9] = {60, 180, 1440, 2880, 4320, 5670, 7200, 8640, 10080};
int timeSteps[3] = {60, 180, 1440};
// zone 1
int timeSteps[9] = {60, 180, 1440, 2880, 4320, 5670, 7200, 8640, 10080};
for (int i = 0 ; i < 3; ++i) {
// zone 2
//int timeSteps[3] = {60, 180, 1440};
for (int i = 0 ; i < sizeof(timeSteps)/sizeof(int); ++i) {
time_t end_parking_time = start_parking_time + timeSteps[i];
if (compute_price_for_parking_ticket(tariff,