From: Miroslav Lichvar Date: Tue, 6 Sep 2016 13:42:00 +0000 (+0200) Subject: client: fix printing of negative poll in sources report again X-Git-Tag: 2.4.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9603f0552a8d78ddd71e643e2a0c3361074bcb27;p=thirdparty%2Fchrony.git client: fix printing of negative poll in sources report again This was broken in commit 3f51805e6214cad5cb9a863491316937541601ec. --- diff --git a/client.c b/client.c index b00fc77d..477f5485 100644 --- 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),