From 27b4c396d0ba8b1c33cb26a074e9abf213ca7c4b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 6 Sep 2016 15:42:00 +0200 Subject: [PATCH] client: fix printing of negative poll in sources report again This was broken in commit 3f51805e6214cad5cb9a863491316937541601ec. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 0041493..2572879 100644 --- a/client.c +++ b/client.c @@ -1997,7 +1997,7 @@ process_cmd_sources(char *line) print_report("%c%c %-27s %2d %2d %3o %I %+S[%+S] +/- %S\n", mode_ch, state_ch, name, ntohs(reply.data.source_data.stratum), - ntohs(reply.data.source_data.poll), + (int16_t)ntohs(reply.data.source_data.poll), ntohs(reply.data.source_data.reachability), (unsigned long)ntohl(reply.data.source_data.since_sample), UTI_FloatNetworkToHost(reply.data.source_data.latest_meas),