From Steve via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3781 :
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:
parent
aa33901ae3
commit
3b2c741db6
|
@ -409,7 +409,7 @@ ntp_fmt_ts(const guint8 *reftime)
|
||||||
fractime = bd->tm_sec + tempfrac / 4294967296.0;
|
fractime = bd->tm_sec + tempfrac / 4294967296.0;
|
||||||
buff=ep_alloc(NTP_TS_SIZE);
|
buff=ep_alloc(NTP_TS_SIZE);
|
||||||
g_snprintf(buff, 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],
|
mon_names[bd->tm_mon],
|
||||||
bd->tm_mday,
|
bd->tm_mday,
|
||||||
bd->tm_year + 1900,
|
bd->tm_year + 1900,
|
||||||
|
|
Loading…
Reference in New Issue