client: fix printing of negative poll in sources report

This commit is contained in:
Miroslav Lichvar 2014-06-06 10:13:25 +02:00
parent cb74f3e7ad
commit 79ac20c161
2 changed files with 3 additions and 3 deletions

View file

@ -518,7 +518,7 @@ typedef struct {
typedef struct {
IPAddr ip_addr;
uint16_t poll;
int16_t poll;
uint16_t stratum;
uint16_t state;
uint16_t mode;

View file

@ -1733,8 +1733,8 @@ process_cmd_sources(char *line)
double orig_latest_meas, latest_meas, latest_meas_err;
IPAddr ip_addr;
uint32_t latest_meas_ago;
uint16_t poll, stratum;
uint16_t state, mode, flags, reachability;
int16_t poll;
uint16_t stratum, state, mode, flags, reachability;
char hostname_buf[50];
/* Check whether to output verbose headers */