diff --git a/src/util-time.h b/src/util-time.h index 2cd752ed3375..bc8811356a7a 100644 --- a/src/util-time.h +++ b/src/util-time.h @@ -87,7 +87,7 @@ typedef struct { #define SCTIME_FROM_TIMESPEC(ts) \ (SCTime_t) \ { \ - .secs = (ts)->tv_sec, .usecs = (ts)->tv_nsec * 1000 \ + .secs = (ts)->tv_sec, .usecs = (ts)->tv_nsec / 1000 \ } #define SCTIME_TO_TIMEVAL(tv, t) \