diff options
author | Kay Sievers <kay@vrfy.org> | 2014-05-22 21:31:46 +0900 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-05-24 08:04:56 +0800 |
commit | d636d376796ec61c1c14fa619c80d4ac62e08a19 (patch) | |
tree | dd32fcbe307c6defcf36e18890ce20810e951607 /src/timesync/timesyncd.h | |
parent | c38dfac9ed6c1c3beb3dd88ebf82a13d1e561ff8 (diff) |
timesyncd: only update stamp file when we are synchronized
Create initial stamp file with compiled-in time to prevent bootups
with clocks in the future from storing invalid timestamps.
At shutdown, only update the timestamp if we got an authoritative
time to store.
Diffstat (limited to 'src/timesync/timesyncd.h')
-rw-r--r-- | src/timesync/timesyncd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timesync/timesyncd.h b/src/timesync/timesyncd.h index 471d4b0a12..4afe4b9f5b 100644 --- a/src/timesync/timesyncd.h +++ b/src/timesync/timesyncd.h @@ -84,6 +84,7 @@ struct Manager { /* last change */ bool jumped; + bool sync; int drift_ppm; /* watch for time changes */ |