projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9727c2b
)
Fixed seq nr display
author
Claudius Zingerli
<gitmail@zeuz.ch>
Fri, 12 Feb 2016 23:56:58 +0000
(
00:56
+0100)
committer
Claudius Zingerli
<gitmail@zeuz.ch>
Fri, 29 Apr 2016 15:36:33 +0000
(17:36 +0200)
src/chrony.c
patch
|
blob
|
history
diff --git
a/src/chrony.c
b/src/chrony.c
index
1a17cda
..
f170f67
100644
(file)
--- a/
src/chrony.c
+++ b/
src/chrony.c
@@
-522,7
+522,7
@@
static int chrony_query(const int p_command, tChrony_Request *p_req, tChrony_Res
p_req->header.f_cmd_try = 0;
p_req->header.f_seq = seq_nr;
p_req->header.f_cmd_try = 0;
p_req->header.f_seq = seq_nr;
- DEBUG(PLUGIN_NAME ": Sending request (.cmd = %d, .seq = %d)",p_command,seq_nr);
+ DEBUG(PLUGIN_NAME ": Sending request (.cmd = %d, .seq = %d)",p_command,
seq_nr);
if (chrony_send_request(p_req,req_size) != 0)
{
break;
if (chrony_send_request(p_req,req_size) != 0)
{
break;
@@
-534,8
+534,8
@@
static int chrony_query(const int p_command, tChrony_Request *p_req, tChrony_Res
break;
}
DEBUG(PLUGIN_NAME ": Received response: .version = %u, .type = %u, .cmd = %u, .reply = %u, .status = %u, .seq = %u",
break;
}
DEBUG(PLUGIN_NAME ": Received response: .version = %u, .type = %u, .cmd = %u, .reply = %u, .status = %u, .seq = %u",
- p_resp->header.f_version,
p_resp->header.f_type,
ntohs(p_resp->header.f_cmd),
- ntohs(p_resp->header.f_reply),
ntohs(p_resp->header.f_status),ntohl(p_resp->header.f_seq)
);
+ p_resp->header.f_version,
p_resp->header.f_type,
ntohs(p_resp->header.f_cmd),
+ ntohs(p_resp->header.f_reply),
ntohs(p_resp->header.f_status), p_resp->header.f_seq
);
if (p_resp->header.f_version != p_req->header.f_version)
{
if (p_resp->header.f_version != p_req->header.f_version)
{