Closed zhuofanxu closed 6 years ago
The % checks the remaining of the division between x and 60. So lets say in line 79 we have 110%60 that gives us 50 so the condition is not meet. On the other hand if we have 120%60 that gives us 0 (the division between 120 and 60 is 2 but the remaining is 0) so the condition is satisfied. This work for any multiplus (not sure if that is the word) of 60. Example: 60,120,180,240,300... and so on. Hope that clears your doubt if that was the question.
@cosme12 Thanks for the reply. Yea. the condition itself at 79 is okay. what i mean is that you assign time.time() to 'start_time' at line 72 first time and at line 77 for the second time. The second assignment make the if condition expression always equal to 0. not the 60,120,180,240....
Oh, now I see what you mean. Should we remove line 77 and keep start_time
outside the while condition?
yes
Feel free to push a pull request to v1.1.0 branch so I can add it and you get listed as collaborator. Thanks for spotting the bug!