Skip to content

Commit

Permalink
TECMP: Lifecycle in Status messages was wrong
Browse files Browse the repository at this point in the history
An hour should have 60 and not 24 minutes.

Closes: #20387
  • Loading branch information
LarsVoelker committed Feb 12, 2025
1 parent 0636cbc commit bb86fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epan/dissectors/packet-tecmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,8 @@ dissect_tecmp_status_device_vendor_data(tvbuff_t *tvb, packet_info *pinfo _U_, p
uint64_t secs = tmp64 / 1000000000;
uint64_t mins = secs / 60;
secs -= mins * 60;
uint64_t hours = mins / 24;
mins -= hours * 24;
uint64_t hours = mins / 60;
mins -= hours * 60;
proto_item_append_text(ti, " ns (%d:%02d:%02d.%09d)", (uint32_t)hours, (uint32_t)mins, (uint32_t)secs, (uint32_t)nanos);

if (tmp64 < timestamp_ns) {
Expand Down

0 comments on commit bb86fed

Please sign in to comment.