Fix the conversion of milliseconds to seconds and nanoseconds.
1 millisecond = 1000000 nanoseconds, not 1000 nanoseconds, and nstime->nsecs is nanoseconds, not microseconds. Change-Id: I6925ff80f6443015f83ca00bad2a347d10eadd7c Reviewed-on: https://code.wireshark.org/review/10060 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
8b8d37801c
commit
2ba0ea3722
|
@ -10658,7 +10658,7 @@ get_amqp_timestamp(nstime_t *nstime, tvbuff_t *tvb, guint offset)
|
|||
|
||||
msec = tvb_get_ntoh64(tvb, offset);
|
||||
nstime->secs = (time_t)(msec / 1000);
|
||||
nstime->nsecs = (int)(msec % 1000)*1000;
|
||||
nstime->nsecs = (int)(msec % 1000)*1000000;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue