Closed Shankhara closed 4 years ago
Dear @Shankhara,
Thank you for opening up an issue for this!
Could you please send me the binary that has the problem, or its output for the test 4 310 200 100? You can produce one by doing something like this:
./philo_one 4 310 200 100 > out.txt
I hope that'll help us to fix the issue.
The meaning of the line in question is roughly this:
"Pick the last line from the beginning until the first space (' '), and run atoi on it"
This normally works if your last line is something like this:
00000313 3 died
Here, 00000310 will be cast to integer and then compared with 310 to see if the death timing was right.
Fixed in 3405edf
Hi, First, thanks for your work it's great help. My only concern is when socrates.py tests death timing. Do you know how to correct this line in socrates.py ?
death_time = int(last_line[: last_line.find(" ")])
See here the last line :
Thx