summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-mq.c
diff options
context:
space:
mode:
authorSilvio Gissi <silvio.gissi@gmail.com>2017-06-21 15:46:45 -0400
committerGuy Harris <guy@alum.mit.edu>2017-06-21 23:50:40 +0000
commit1e7a921796883fffcefacef16d5721b967373fb2 (patch)
tree2b20994377b97ae5185996736938759b99f60a94 /epan/dissectors/packet-mq.c
parent192ba64c5350ad371c6fe9bef4672cb0eff4f050 (diff)
downloadwireshark-1e7a921796883fffcefacef16d5721b967373fb2.tar.gz
Lua: Add "tonumber" method to NSTime
Absolute and Relative time fields could not be converted to seconds without converting to string and parsing to number. Fixed conversion in generated code that was subject to precision loss Usage: f=Field.new("frame.delta_time") delta=f().value:tonumber() Change-Id: I6ef91c6238a6c2ed9adf6cae03f8913f0a09332e Reviewed-on: https://code.wireshark.org/review/22316 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit 59add43eecfbed3bae5d75dabe6e875b5adefe1b) Reviewed-on: https://code.wireshark.org/review/22331
Diffstat (limited to 'epan/dissectors/packet-mq.c')
0 files changed, 0 insertions, 0 deletions