Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include formatted time in pkt.cols.info #11

Open
mdavidsaver opened this issue Nov 25, 2021 · 2 comments
Open

Include formatted time in pkt.cols.info #11

mdavidsaver opened this issue Nov 25, 2021 · 2 comments

Comments

@mdavidsaver
Copy link
Owner

cf. https://epics.anl.gov/tech-talk/2021/msg02039.php

On 11/24/21 6:07 PM, Shankar, Murali via Tech-talk wrote:

Hello,

I am trying to track down some connectivity issues. I am using the wireshark LUA plugin to process a packet dump from production. Being a wireshark newbie, I was wondering if anyone know how to print the timestamp_sec and timestamp_nsec as part of rendering the ca_monitor event here - https://github.com/mdavidsaver/cashark/blob/master/ca.lua#L694 https://github.com/mdavidsaver/cashark/blob/master/ca.lua#L694. I am using wireshark-1.10.14 that ships as part of RHEL7...

@mdavidsaver
Copy link
Owner Author

The time, when available, is already being formatted[1]. At least the seconds part.

Including the fraction part would take some effort. The Lua os.date() does not seem to understand fractional seconds, so this would need to be done explicitly with some string manipulation. (like epicsTimeToStrftime() does)

It might also mean some restructuring of how parse_dbr() interacts with its callers to eg. move more of the printing into parse_dbr().

@mdavidsaver
Copy link
Owner Author

I'm not planning to work on this immediately. If someone else is inclined to do, please make a note here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant