diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-08-16 12:33:31 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-08-16 19:34:50 +0000 |
commit | 2ba0ea372214b271010578d4ae269728c191620a (patch) | |
tree | 996b7dd1e410d70f2c9a6d85e3be36f000582616 /epan | |
parent | 8b8d37801ce1dd7b592cabbc2da06aa05019912e (diff) |
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>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-amqp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-amqp.c b/epan/dissectors/packet-amqp.c index f497df6635..2009028798 100644 --- a/epan/dissectors/packet-amqp.c +++ b/epan/dissectors/packet-amqp.c @@ -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 |