Fix definition of timespec >= operator

This commit is contained in:
Matthias Schiffer 2015-02-06 23:06:11 +01:00
parent d73c8b930b
commit 1e14dabc2d

View file

@ -65,7 +65,7 @@ static inline bool operator>(const struct timespec &t1, const struct timespec &t
}
static inline bool operator>=(const struct timespec &t1, const struct timespec &t2) {
return (t1.tv_sec >= t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_nsec >= t2.tv_nsec));
return (t1.tv_sec > t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_nsec >= t2.tv_nsec));
}
static inline bool operator==(const struct timespec &t1, const struct timespec &t2) {