fixed file time to epicsTime conversion

This commit is contained in:
Jeff Hill
2002-09-06 00:45:13 +00:00
parent d0e406457d
commit 593ee10818

View File

@@ -394,7 +394,8 @@ void currentTime::getCurrentTime ( epicsTimeStamp & dest )
dest.secPastEpoch = static_cast < epicsUInt32 >
( fileTimeTicksSinceEpochEPICS / FILE_TIME_TICKS_PER_SEC );
dest.nsec = static_cast < epicsUInt32 >
( fileTimeTicksSinceEpochEPICS * 100 );
( ( fileTimeTicksSinceEpochEPICS % FILE_TIME_TICKS_PER_SEC ) *
EPICS_TIME_TICKS_PER_SEC / FILE_TIME_TICKS_PER_SEC );
}
else {
dest.secPastEpoch = 0;