Cache mtimes.

This commit is contained in:
Glenn Maynard
2003-09-23 00:09:10 +00:00
parent adafc1114f
commit 18a45487ab
3 changed files with 40 additions and 14 deletions
+1 -5
View File
@@ -437,12 +437,8 @@ unsigned int GetHashForFile( CString sPath )
unsigned int hash = 0;
hash += GetHashForString( sPath );
hash += GetFileSizeInBytes( sPath );
struct stat st;
if( DoStat(sPath, &st))
hash += st.st_mtime;
hash += GetFileModTime( sPath );
return hash;
}