]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: fix printing of negative poll in sources report again
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Sep 2016 13:42:00 +0000 (15:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 21 Nov 2016 11:02:51 +0000 (12:02 +0100)
This was broken in commit 3f51805e6214cad5cb9a863491316937541601ec.

client.c

index b00fc77dfc46d21ec3fda0ecca7a6b175b9b319d..477f54854dcf71ec33d65404e8f7b514bfb6a756 100644 (file)
--- a/client.c
+++ b/client.c
@@ -2007,7 +2007,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),