clock: fix usec-to-usec factor

This commit is contained in:
Hagen Fritsch 2013-02-27 19:41:30 +01:00 committed by Max Kellermann
parent 28a60db5aa
commit 2cf31e905b
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ monotonic_clock_us(void)
/* we have no monotonic clock, fall back to gettimeofday() */
struct timeval tv;
gettimeofday(&tv, 0);
return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec) / 1000(;
return (uint64_t)tv.tv_sec * 1000 + (uint64_t)tv.tv_usec;
#endif
}