Skip to content

Commit

Permalink
adjust time sync check to not complain when daemon is stopped and sta…
Browse files Browse the repository at this point in the history
…rted during the same second (service restart scenario)
  • Loading branch information
vergoh committed Mar 4, 2018
1 parent c2d064f commit 698a0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ int waittimesync(DSTATE *s)
printf("latest db update: %s\n", timestamp2);
}

if (s->current <= s->prevdbsave) {
if (s->current < s->prevdbsave) {
if (s->prevdbupdate == 0) {
s->prevdbupdate = s->current;
strftime(timestamp, 22, "%Y-%m-%d %H:%M:%S", localtime(&s->current));
Expand Down

0 comments on commit 698a0cc

Please sign in to comment.