In ntp_fmt_ts() in packet-ntp.c time stamps are displayed to 4 digits (0.1
msec).   More digits may be significant (e.g., if GPS local clocks are used).

Change time stamp format in g_snprintf() from
  %07.4f
to
  %09.6f


svn path=/trunk/; revision=29961
This commit is contained in:
Jeff Morriss 2009-09-17 03:01:26 +00:00
parent aa33901ae3
commit 3b2c741db6
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ ntp_fmt_ts(const guint8 *reftime)
fractime = bd->tm_sec + tempfrac / 4294967296.0;
buff=ep_alloc(NTP_TS_SIZE);
g_snprintf(buff, NTP_TS_SIZE,
"%s %2d, %d %02d:%02d:%07.4f UTC",
"%s %2d, %d %02d:%02d:%09.6f UTC",
mon_names[bd->tm_mon],
bd->tm_mday,
bd->tm_year + 1900,