ts was buggy

This commit is contained in:
2026-07-20 20:44:31 +02:00
parent 988a44b8f4
commit c2d53ad334

View File

@@ -45,7 +45,7 @@ inline void timespec_add_ms(struct timespec *ts, const uint16_t ms) {
inline uint64_t timespec_diff_us(const struct timespec *a, const struct timespec *b) {
const int64_t sec = a->tv_sec - b->tv_sec;
const int64_t nsec = a->tv_nsec - b->tv_nsec;
return sec * 1000000ULL + nsec / 1000ULL;
return sec * 1000000LL + nsec / 1000LL;
}
inline char *pretty_num(const double num, char *buf, const size_t bufsz) {