aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-12-26 20:19:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-12-26 20:19:37 +0100
commit36acc4631c94bb0f43ecaac5d61dc773ef773e91 (patch)
treecacd167863820ea3f04f34599dfa730e11bb61b1
parent8d8ee910f0a624fefd2a4aaefeb406003dea7807 (diff)
downloadbusybox-w32-36acc4631c94bb0f43ecaac5d61dc773ef773e91.tar.gz
busybox-w32-36acc4631c94bb0f43ecaac5d61dc773ef773e91.tar.bz2
busybox-w32-36acc4631c94bb0f43ecaac5d61dc773ef773e91.zip
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>
-rw-r--r--networking/ntpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 0b60d003b..17e5c7da6 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2362,7 +2362,9 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
2362 2362
2363 /* Nothing between here and poll() blocks for any significant time */ 2363 /* Nothing between here and poll() blocks for any significant time */
2364 2364
2365 nextaction = G.cur_time + 3600; 2365 nextaction = G.last_script_run + (11*60);
2366 if (nextaction < G.cur_time + 1)
2367 nextaction = G.cur_time + 1;
2366 2368
2367 i = 0; 2369 i = 0;
2368#if ENABLE_FEATURE_NTPD_SERVER 2370#if ENABLE_FEATURE_NTPD_SERVER