1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r23357: timespec_current() was returning the wrong ns time

(multiplying tv_sec, not tv_usec).
Jeremy.
This commit is contained in:
Jeremy Allison
2007-06-05 19:17:05 +00:00
committed by Gerald (Jerry) Carter
parent 42d846ff87
commit bafd3b93f9

View File

@@ -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;
}