tarantool / tarantool-dissector

Wireshark's dissector for the Tarantool's protocol
Other
6 stars 1 forks source link

reply_time(latency) field #4

Open neopaf opened 2 years ago

neopaf commented 2 years ago

Measure time between request and reply and add it as evaluated field, code:

f.reply_time = ProtoField.relative_time("tarantool.reply_time", "Reply time")

local s,nsfrac = math.modf(request_time - response_time)
local delta = NSTime(s, nsfrac*1e9)
subtree:add(f.reply_time, delta):set_generated() end

https://github.com/neopaf/tarantool-dissector/issues/7

neopaf commented 2 years ago

in my task I've fixed that. feel free to take that