Allow zero as a configured value for pi_offset_const.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-09-29 10:39:26 +02:00
parent a15a0a0221
commit 675df82a29
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ static void scan_global_line(const char *s, struct config *cfg)
} else if (1 == sscanf(s, " pi_offset_const %lf", &df)) {
if (df > 0.0)
if (df >= 0.0)
*cfg->pi_offset_const = df;
} else if (MAC_LEN == sscanf(s, " ptp_dst_mac %hhx:%hhx:%hhx:%hhx:%hhx:%hhx",