[checkmk-commits] Fix time calculation bug and some clean ups on the way