Remove unneeded printf

This commit is contained in:
Isaac Shoebottom 2023-10-11 17:37:49 -03:00
parent 5418f83cae
commit fa28dec841

View File

@ -90,7 +90,6 @@ void* trucker(void* arg) {
truckWeight = 0; truckWeight = 0;
} }
} }
printf("Truck %d is not full\n", id);
int time = RANDOM_WITHIN_RANGE(MIN_TRIP_TIME, MAX_TRIP_TIME, seed); // One way trip, so half the time int time = RANDOM_WITHIN_RANGE(MIN_TRIP_TIME, MAX_TRIP_TIME, seed); // One way trip, so half the time
printf("Not full truck %d with load of %d units of mass departed. One way will take %d units of time\n", id, truckWeight, time); printf("Not full truck %d with load of %d units of mass departed. One way will take %d units of time\n", id, truckWeight, time);
sleep(time); sleep(time);