ntpd: do run the script at leat once in 11 minutes

function                                             old     new   delta
ntpd_main                                           1197    1226     +29

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-12-26 20:19:37 +01:00
parent 8d8ee910f0
commit 36acc4631c

View File

@ -2362,7 +2362,9 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
/* Nothing between here and poll() blocks for any significant time */ /* Nothing between here and poll() blocks for any significant time */
nextaction = G.cur_time + 3600; nextaction = G.last_script_run + (11*60);
if (nextaction < G.cur_time + 1)
nextaction = G.cur_time + 1;
i = 0; i = 0;
#if ENABLE_FEATURE_NTPD_SERVER #if ENABLE_FEATURE_NTPD_SERVER