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:
committed by
Gerald (Jerry) Carter
parent
42d846ff87
commit
bafd3b93f9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user