|
|
|
|
|
by athenot
3192 days ago
|
|
That's a useless comment. A better one would be: // Prevent the two tasks from running right after each other,
// to reduce load when this is run frequently
sleep(15*60)
Even the most junior dev can infer that a multiplication by 60 for a sleep function probably means the unit is seconds and we want 15 minutes. No need to spell that out. But why sleep for 15 minutes and not just carry on to the next task? THAT is what the comment is for. |
|