logoalt Hacker News

Veservyesterday at 5:09 AM1 replyview on HN

The original loop is:

while (time() != timeout) {;}

The fixed loop is:

while (time() < timeout) {;}


Replies

dpkirchneryesterday at 5:28 AM

I see. I did not realize SECONDS was a built in bash variable.

show 2 replies