Thanks!
Implemented in a slightly different way.

On Fri, Dec 15, 2017 at 2:09 PM, Jiri Prchal <[email protected]> wrote:
> "S" option should run script every 11 minutes, but how it could if it sleeps 
> 1 hour.
> So change next action time to 11 min.
>
> Signed-off-by: Jiri Prchal <[email protected]>
> ---
>  networking/ntpd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/networking/ntpd.c b/networking/ntpd.c
> index 0b60d00..573a361 100644
> --- a/networking/ntpd.c
> +++ b/networking/ntpd.c
> @@ -2362,7 +2362,7 @@ 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.cur_time + (11*60);
>
>                 i = 0;
>  #if ENABLE_FEATURE_NTPD_SERVER
> --
> 2.7.4
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to