From 991964495b65f3f6d3a043d8fc5b7fe8c20728d3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 31 Jan 1999 23:50:36 +0000 Subject: Sun Jan 31 18:39:09 1999 Thomas Bushnell, BSG * nfs.c (xdr_encode_sattr_times): Convert nanoseconds to microseconds correctly. * ops.c (netfs_attempt_utimes): Handle new possibility that ATIME or MTIME might be null. --- nfs/nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nfs/nfs.c') diff --git a/nfs/nfs.c b/nfs/nfs.c index 1c55f3f1..46c95c22 100644 --- a/nfs/nfs.c +++ b/nfs/nfs.c @@ -270,9 +270,9 @@ xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime) *p++ = -1; /* gid */ *p++ = -1; /* size */ *p++ = htonl (atime->tv_sec); - *p++ = htonl (atime->tv_nsec * 1000); + *p++ = htonl (atime->tv_nsec / 1000); *p++ = htonl (mtime->tv_sec); - *p++ = htonl (mtime->tv_nsec * 1000); + *p++ = htonl (mtime->tv_nsec / 1000); } else { -- cgit v1.2.3