projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d85009
)
chrony: fix conversion of clock_last_meas value
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
11310b1
..
0733e13
100644
(file)
--- a/
src/chrony.c
+++ b/
src/chrony.c
@@
-881,7
+881,7
@@
static int chrony_request_source_data(int p_src_idx, int *p_is_reachable) {
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,
- ntoh
s
(chrony_resp.body.source_data.f_since_sample));
+ ntoh
l
(chrony_resp.body.source_data.f_since_sample));
return CHRONY_RC_OK;
}