mirror of https://github.com/OISF/suricata
util/time: Improve usecs handling in time macros
Fix SCTIME_ADD_SECS zeroing subsecond part
When adding s seconds to SCtime_t ts, don't zero out the ts.usecs field.
Issue: 6584
Fix SCTIME_FROM_TIMESPEC garbage microseconds part
When converting nanosecond to microseconds divide by 1000 instead
of multiplying by 1000.
Issue: 6585
(cherry picked from commit 0850e3d137)
pull/10013/head
parent
49ed65d008
commit
4fda50da84
Loading…
Reference in New Issue