fix win32helpers gettimeofday epoch 54/3154/1
authorArokux B <arokux@gmail.com>
Tue, 5 Mar 2013 00:41:47 +0000 (08:41 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000 (13:01 -0800)
Signed-off-by: Arokux B <arokux@gmail.com>
win32port/win32helpers/gettimeofday.c

index bdf8e16..18d5a46 100644 (file)
@@ -33,8 +33,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
                tmpres |= ft.dwLowDateTime;\r
 \r
                /*converting file time to unix epoch*/\r
-               tmpres -= DELTA_EPOCH_IN_MICROSECS; \r
                tmpres /= 10;  /*convert into microseconds*/\r
+               tmpres -= DELTA_EPOCH_IN_MICROSECS;
                tv->tv_sec = (long)(tmpres / 1000000UL);\r
                tv->tv_usec = (long)(tmpres % 1000000UL);\r
        }\r