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:
Guy Harris 2015-08-16 12:33:31 -07:00
parent 8b8d37801c
commit 2ba0ea3722
1 changed files with 1 additions and 1 deletions

View File

@ -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