Commit 492781a2 authored by Scott Vokes's avatar Scott Vokes
Browse files

Fix time type struct conversion (Linux-only).

parent 9ffb760f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,8 +38,8 @@ bool util_timestamp(struct timeval *tv, bool relative) {
        if (0 != clock_gettime(CLOCK_MONOTONIC, &ts)) {
            return false;
        }
        tv.tv_sec = ts.tv_sec;
        tv.tv_usec = tv.tv_nsec / 1000L;
        tv->tv_sec = ts.tv_sec;
        tv->tv_usec = ts.tv_nsec / 1000L;
        return true;
    }
#else