remove wrong debug-out-put. Use ceil() instead on floor() to prevent rounding error.:w

This commit is contained in:
2023-05-09 11:52:17 +02:00
parent b02115bf75
commit 136e6687b8
3 changed files with 7 additions and 6 deletions

View File

@@ -80,7 +80,8 @@ int main() {
memset(&now, 0, sizeof(now));
strptime("2023-04-30T06:00:00", "%Y-%m-%dT%H:%M:%S", &now);
now.tm_hour -= 1; // for ctime
for (int i=0; i<6*24; ++i) {
// for (int i=0; i<6*24; ++i) {
for (int i=0; i<1; ++i) {
int const duration = 120;
time_t t = mktime(&now);
start_parking_time = t / 60;