diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-12-26 20:19:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-12-26 20:19:37 +0100 |
commit | 36acc4631c94bb0f43ecaac5d61dc773ef773e91 (patch) | |
tree | cacd167863820ea3f04f34599dfa730e11bb61b1 | |
parent | 8d8ee910f0a624fefd2a4aaefeb406003dea7807 (diff) | |
download | busybox-36acc4631c94bb0f43ecaac5d61dc773ef773e91.tar.gz |
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.c | 4 |
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) /* 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; #if ENABLE_FEATURE_NTPD_SERVER |