From d636d376796ec61c1c14fa619c80d4ac62e08a19 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 22 May 2014 21:31:46 +0900 Subject: 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. --- src/timesync/timesyncd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/timesync/timesyncd.h') 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 */ -- cgit v1.2.3-54-g00ecf