ntpd: set G.last_script_run even if script isn't configured

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-05-22 18:18:51 +02:00
parent 5ffdd1d981
commit 07c5987498

View File

@ -838,6 +838,8 @@ static void run_script(const char *action, double offset)
char *argv[3];
char *env1, *env2, *env3, *env4;
G.last_script_run = G.cur_time;
if (!G.script_name)
return;
@ -874,8 +876,6 @@ static void run_script(const char *action, double offset)
free(env2);
free(env3);
free(env4);
G.last_script_run = G.cur_time;
}
static NOINLINE void