Changed how ROFSTLookup object was obtained based on correct DocVersion

Changed how RoFst date time is compared to actual ro.fst file date time
This commit is contained in:
Rich
2014-02-07 17:37:51 +00:00
parent 7ab6604534
commit f864d03eec
5 changed files with 20 additions and 18 deletions

View File

@@ -178,6 +178,8 @@ namespace VEPROMS.CSLA.Library
// if the database Ro.Fst is newer or if the files have identical DTS,
// assume that they are the same file.
if (roFstInfo.DTS >= fiRofst.LastWriteTimeUtc) return false;
TimeSpan ts = roFstInfo.DTS - fiRofst.LastWriteTimeUtc;
if (ts.TotalSeconds > -1F) return false;
// next see if the data is the same size, i.e. byte count of record and byte count
// of file. If different sizes, the date/time stamp check will hold.