projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8ee91
)
ntpd: do run the script at leat once in 11 minutes
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Dec 2017 19:19:37 +0000
(20:19 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Dec 2017 19:19:37 +0000
(20:19 +0100)
function old new delta
ntpd_main 1197 1226 +29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c
patch
|
blob
|
history
diff --git
a/networking/ntpd.c
b/networking/ntpd.c
index 0b60d003b619537d9028fa77ebc7fc984430be20..17e5c7da635b026fedf052620f0ecdbc859b5de9 100644
(file)
--- 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