commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r809167 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c
Date Sat, 29 Aug 2009 17:29:49 GMT
Author: mturk
Date: Sat Aug 29 17:29:48 2009
New Revision: 809167

URL: http://svn.apache.org/viewvc?rev=809167&view=rev
Log:
Fix messy svn commits

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c?rev=809167&r1=809166&r2=809167&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/time.c Sat Aug 29 17:29:48 2009
@@ -58,8 +58,8 @@
     WORD         dt;
 
     /* Round up to two seconds */
-    t = ACR_ALIGN((t / ACR_USEC_PER_SEC), 2);
-    UsecTimeToFileTime(&ft, t * ACR_USEC_PER_SEC);
+    t = ACR_ALIGN((t / ACR_USEC_PER_SEC), 2) * ACR_USEC_PER_SEC);
+    UsecTimeToFileTime(&ft, t);
     if (FileTimeToDosDateTime(&ft, &dd, &dt))
         return ((acr_uint32_t)dd << 16) | (acr_uint32_t)dt;
     else {



Mime
View raw message