On Thursday, July 28, 2016 2:43:16 PM CEST Jonathan Haws wrote:
Signed-off-by: Jonathan Haws jhaws@sdl.usu.edu
ALFRED_INTERVAL is now externalized via the -p option (synchronization period). If specified as option, user supplied interval is used, otherwise the default interval of ALFRED_INTERVAL is used.
[...]
--- a/server.c +++ b/server.c @@ -372,7 +372,7 @@ int alfred_server(struct globals *globals)
while (1) { clock_gettime(CLOCK_MONOTONIC, &now);
now.tv_sec -= ALFRED_INTERVAL;
time_diff(&now, &globals->sync_period, &now);
I believe this at least deserves a comment, or must be made more clear in the code.