summaryrefslogtreecommitdiff
path: root/source3/lib/time.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-05 19:17:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:09 -0500
commit51ea3a2d00b1f66f4a1b15fccc8de721785d5ebc (patch)
tree7e16a51e8511dfdac4aa862fd18dfe9e474aff84 /source3/lib/time.c
parent34bc0e188369af89f4e1680edf9766c568b8a5a8 (diff)
downloadsamba-51ea3a2d00b1f66f4a1b15fccc8de721785d5ebc.tar.gz
samba-51ea3a2d00b1f66f4a1b15fccc8de721785d5ebc.tar.bz2
samba-51ea3a2d00b1f66f4a1b15fccc8de721785d5ebc.zip
r23357: timespec_current() was returning the wrong ns time
(multiplying tv_sec, not tv_usec). Jeremy. (This used to be commit bafd3b93f9ce74d7a8e2d6b36735f0977a22882c)
Diffstat (limited to 'source3/lib/time.c')
-rw-r--r--source3/lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index ee44f5eb13..a703066248 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;
}