mirror of
https://github.com/pi-hole/FTL.git
synced 2026-07-07 05:25:10 +01:00
fbee810f52
When ts1.tv_nsec < ts0.tv_nsec (nanosecond counter wraps across a second boundary), the unsigned subtraction produced a huge positive value instead of a small negative one. Compute the full difference in signed int64_t nanoseconds first, then convert to unsigned microseconds. Signed-off-by: Dominik <dl6er@dl6er.de>