[checkmk-commits] Make rate calculation code more similar to the one in CMC.