Re-Test.
This commit is contained in:
parent
ff1dc4a10c
commit
cb78e27d37
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user