timer: protect against race in update max, reset max also

Juergen Hannappel requested to merge slownes-enhances into master

Merge request reports