summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d85009)
raw | patch | inline | side by side (parent: 7d85009)
author | Miroslav Lichvar <mlichvar@redhat.com> | |
Thu, 23 Feb 2017 11:08:55 +0000 (12:08 +0100) | ||
committer | Miroslav Lichvar <mlichvar@redhat.com> | |
Thu, 23 Feb 2017 14:38:48 +0000 (15:38 +0100) |
The f_since_sample field in source data has 32 bits.
src/chrony.c | patch | blob | history |
diff --git a/src/chrony.c b/src/chrony.c
index 11310b192773b2296f90389b2378d7d2ebd78ae2..0733e130ba649d581c4f0b07b0e741529453788e 100644 (file)
--- a/src/chrony.c
+++ b/src/chrony.c
chrony_push_data_valid("clock_reachability", src_addr, is_reachable,
ntohs(chrony_resp.body.source_data.f_reachability));
chrony_push_data_valid("clock_last_meas", src_addr, is_reachable,
- ntohs(chrony_resp.body.source_data.f_since_sample));
+ ntohl(chrony_resp.body.source_data.f_since_sample));
return CHRONY_RC_OK;
}