Skip to content

avoid rounding errors and overflows when substracting timespecs

Rolf Eike Beer requested to merge (removed):timespec-overflow into master

The current Unix time will cause overflows if multiplied with 1000, which could lead to rounding errors afterwards. Do the substractions first so all numbers stay small enough to fit into unsigned ints.

Merge request reports