From: Jeremy Allison Date: Tue, 5 Jun 2007 19:17:05 +0000 (+0000) Subject: r23357: timespec_current() was returning the wrong ns time X-Git-Tag: samba-4.0.0alpha6~801^2~5687 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51ea3a2d00b1f66f4a1b15fccc8de721785d5ebc;p=thirdparty%2Fsamba.git r23357: timespec_current() was returning the wrong ns time (multiplying tv_sec, not tv_usec). Jeremy. (This used to be commit bafd3b93f9ce74d7a8e2d6b36735f0977a22882c) --- diff --git a/source3/lib/time.c b/source3/lib/time.c index ee44f5eb134..a703066248e 100644 --- a/source3/lib/time.c +++ b/source3/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; }