From: Bob van Loosen Date: Sat, 3 Mar 2012 16:36:28 +0000 (+0100) Subject: fixed: struct timespec now values weren't set correctly on osx X-Git-Tag: upstream/2.2.0~1^2~31^2~102 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1b469124aa1f79269686492c391d54e43525ccf4;p=deb_libcec.git fixed: struct timespec now values weren't set correctly on osx --- diff --git a/src/lib/platform/posix/os-threads.h b/src/lib/platform/posix/os-threads.h index fc28fc9..8b56731 100644 --- a/src/lib/platform/posix/os-threads.h +++ b/src/lib/platform/posix/os-threads.h @@ -52,8 +52,8 @@ namespace PLATFORM #ifdef __APPLE__ struct timeval tv; gettimeofday(&tv, NULL); - now.tv_sec = tv.tv_sec + 0; - now.tv_nsec = 0; + now.tv_sec = tv.tv_sec; + now.tv_nsec = tv.tv_usec * 1000; #else clock_gettime(CLOCK_REALTIME, &now); #endif