summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd-manager.h
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2014-09-02 14:29:51 +0200
committerKay Sievers <kay@vrfy.org>2014-09-02 14:29:51 +0200
commite8206972be6a7ebeb198cd0d400bc7a94a6a5fc5 (patch)
treef50aa6e0670e32bddc0abb42c653c4bd04e48ff2 /src/timesync/timesyncd-manager.h
parent665c6a9eab46b0b253af6566ca9fc70c866b3fcd (diff)
timesyncd: allow two missed replies before reselecting server
After receiving a reply from the server, allow two missed replies before switching to another server to avoid unnecessary clock hopping when packets are getting lost in the network.
Diffstat (limited to 'src/timesync/timesyncd-manager.h')
-rw-r--r--src/timesync/timesyncd-manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timesync/timesyncd-manager.h b/src/timesync/timesyncd-manager.h
index 0ac0e179c1..8296d41295 100644
--- a/src/timesync/timesyncd-manager.h
+++ b/src/timesync/timesyncd-manager.h
@@ -53,6 +53,7 @@ struct Manager {
ServerName *current_server_name;
ServerAddress *current_server_address;
int server_socket;
+ int missed_replies;
uint64_t packet_count;
sd_event_source *event_timeout;