Add re-check

This commit is contained in:
Gerhard Hoffmann 2024-02-27 17:30:15 +01:00
parent 7831329b11
commit 493d94aaa1

View File

@ -277,7 +277,7 @@ int main() {
QDateTime start = s.addSecs(offset * 60);
QDateTime const firstStart = start;
if (*step != 30) continue;
//if (*step != 30) continue;
double cost = 0;
@ -427,11 +427,17 @@ int main() {
return -1;
}
if (compute_duration_for_parking_ticket(&cfg, start, cost, end)) { // return value
QDateTime end2 = QDateTime();
if (compute_duration_for_parking_ticket(&cfg, start, cost, end2)) { // return value
qCritical() << "XXXX start" << start.toString(Qt::ISODate)
<< "offset" << offset
<< "cost" << cost
<< "end" << end.toString(Qt::ISODate);
<< "end" << end2.toString(Qt::ISODate);
if (end != end2) {
qCritical() << "YYYY"
<< end.toString(Qt::ISODate)
<< end2.toString(Qt::ISODate);
}
}
}
}