ntpd: renew cur_time after script run, it can take a while

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-01-06 13:05:08 +01:00
parent ede737b7cf
commit 06667f21d6

View File

@ -1902,6 +1902,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
) {
/* Useful for updating battery-backed RTC and such */
run_script("periodic");
gettime1900d(); /* sets G.cur_time */
}
continue;
}