svn commit: samba r17818 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Thu Aug 24 23:39:37 GMT 2006
Author: jra
Date: 2006-08-24 23:39:37 +0000 (Thu, 24 Aug 2006)
New Revision: 17818
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17818
Log:
Fixup uint64 time calc. NT time is a 64 bit number,
not high value seconds, low value 100ns units.
Jeremy.
Modified:
branches/SAMBA_3_0/source/lib/time.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/time.c
===================================================================
--- branches/SAMBA_3_0/source/lib/time.c 2006-08-24 23:21:43 UTC (rev 17817)
+++ branches/SAMBA_3_0/source/lib/time.c 2006-08-24 23:39:37 UTC (rev 17818)
@@ -316,12 +316,12 @@
d = ts.tv_sec;
d += TIME_FIXUP_CONSTANT_INT;
- d = ts.tv_sec * 1000*1000*10;
+ d *= 1000*1000*10;
/* d is now in 100ns units. */
d += (ts.tv_nsec / 100);
- nt->high = (uint32)(d / 1000*1000*10);
- nt->low = (uint32)(d % 1000*1000*10);
+ nt->low = (uint32)(d & 0xFFFFFFFF);
+ nt->high = (uint32)(d >> 32 );
}
#else
More information about the samba-cvs
mailing list