CIP: Correct UTIME sub-seconds portion

This commit is contained in:
Dylan Ulis 2022-08-02 10:41:20 -04:00 committed by A Wireshark GitLab Utility
parent 0ca960c6d8
commit 59909dfb5d
1 changed files with 1 additions and 1 deletions

View File

@ -5471,7 +5471,7 @@ int dissect_cip_utime(proto_tree* tree, tvbuff_t* tvb, int offset, int hf_dateti
nstime_t ts_nstime = { 0 };
guint64 timestamp = tvb_get_letoh64(tvb, offset);
ts_nstime.secs = timestamp / 1000000;
ts_nstime.nsecs = timestamp % 1000000;
ts_nstime.nsecs = (timestamp % 1000000) * 1000;
proto_tree_add_time(tree, hf_datetime, tvb, offset, 8, &ts_nstime);