diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-17 01:03:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-17 01:03:39 +0200 |
commit | 03cc26dda4cb59207fea3dd4fd1fa4608746739c (patch) | |
tree | 668d68fb3f7803ed5c7ce4a04e227bdbff030b0b /src/timedate/timedatectl.c | |
parent | aacf3b483b70b9a9ff16217f6376d143cbfe4636 (diff) |
timedated: expose time and NTP sync flag via the bus
This way, timedatectl can be run over the network and determine all
properties correctly from the server rather than the client.
Diffstat (limited to 'src/timedate/timedatectl.c')
-rw-r--r-- | src/timedate/timedatectl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 141180c393..80afc57131 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -72,18 +72,6 @@ typedef struct StatusInfo { bool can_ntp; } StatusInfo; -static bool ntp_synced(void) { - struct timex txc = {}; - - if (adjtimex(&txc) < 0) - return false; - - if (txc.status & STA_UNSYNC) - return false; - - return true; -} - static const char *jump_str(int delta_minutes, char *s, size_t size) { if (delta_minutes == 60) return "one hour forward"; |