Fix typo in Generic_gettime_realtime on old Mac

Fixes #673
This commit is contained in:
Benny Baumann 2021-07-01 23:27:54 +02:00
parent ecb6a8da78
commit 874fb773a7
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ void Generic_gettime_realtime(struct timeval* tvp, uint64_t* msec) {
struct timeval tv;
if (gettimeofday(&tv, NULL) == 0) {
*tsp = tv; /* struct copy */
*tvp = tv; /* struct copy */
*msec = ((uint64_t)tv.tv_sec * 1000) + ((uint64_t)tv.tv_usec / 1000);
} else {
memset(tvp, 0, sizeof(struct timeval));