Changeset 1914

Show
Ignore:
Timestamp:
04/11/2007 05:23:40 (14 months ago)
Author:
chris
Message:

Ignore time differences less than 1 second when comparing attributes,
as not all filesystems can store times that accurately (e.g. OSX).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupclient/BackupClientFileAttributes.cpp

    r1783 r1914  
    249249        if(!IgnoreModTime) 
    250250        { 
    251                 if(a1->ModificationTime != a2->ModificationTime) 
     251                int t1 = a1->ModificationTime / 1000000; 
     252                int t2 = a2->ModificationTime / 1000000; 
     253                if(t1 != t2) 
    252254                { 
    253255                        return false; 
     
    257259        if(!IgnoreAttrModTime) 
    258260        { 
    259                 if(a1->AttrModificationTime != a2->AttrModificationTime) 
     261                int t1 = a1->AttrModificationTime / 1000000; 
     262                int t2 = a2->AttrModificationTime / 1000000; 
     263                if(t1 != t2) 
    260264                { 
    261265                        return false;