fix(lib): a null clock must have tv_nsec be 0 as well

This commit is contained in:
Amaan Qureshi 2024-05-19 01:16:58 -04:00
parent 636801770e
commit ae35a36747

View file

@ -91,7 +91,7 @@ static inline TSClock clock_after(TSClock base, TSDuration duration) {
}
static inline bool clock_is_null(TSClock self) {
return !self.tv_sec;
return !self.tv_sec && !self.tv_nsec;
}
static inline bool clock_is_gt(TSClock self, TSClock other) {