From bafd3b93f9ce74d7a8e2d6b36735f0977a22882c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Jun 2007 19:17:05 +0000 Subject: [PATCH] r23357: timespec_current() was returning the wrong ns time (multiplying tv_sec, not tv_usec). Jeremy. --- source/lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/time.c b/source/lib/time.c index ee44f5eb134..a703066248e 100644 --- a/source/lib/time.c +++ b/source/lib/time.c @@ -1111,7 +1111,7 @@ struct timespec timespec_current(void) struct timespec ts; GetTimeOfDay(&tv); ts.tv_sec = tv.tv_sec; - ts.tv_nsec = tv.tv_sec * 1000; + ts.tv_nsec = tv.tv_usec * 1000; return ts; }