check_ntp: Bug in average calculation

--
(Closes: #1089)