From 564c0da8d2a686f0137bf8020e13bdf4f30cfe59 Mon Sep 17 00:00:00 2001 From: Misha Manulis Date: Sat, 23 May 2015 20:09:15 -0700 Subject: [PATCH] Apply rtl_test fix from PR #13 --- src/rtl_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtl_test.c b/src/rtl_test.c index 1f9dda1..01942fb 100644 --- a/src/rtl_test.c +++ b/src/rtl_test.c @@ -162,8 +162,8 @@ static int ppm_gettime(struct time_generic *tg) struct timeval tv; rv = gettimeofday(&tv, NULL); - ts->tv_sec = tv.tv_sec; - ts->tv_nsec = tv.tv_usec * 1000; + tg->tv_sec = tv.tv_sec; + tg->tv_nsec = tv.tv_usec * 1000; #endif return rv; }