counter fix

This commit is contained in:
tantricity 2009-05-20 18:22:26 +00:00
parent 1c6db0ae1b
commit 56261df0c7

View File

@ -104,6 +104,7 @@ void _FAT_cache_destructor (CACHE* cache) {
static u32 accessCounter = 0; static u32 accessCounter = 0;
static u32 accessTime(){ static u32 accessTime(){
accessCounter++;
return accessCounter; return accessCounter;
} }
@ -166,7 +167,6 @@ bool _FAT_cache_getSectors (CACHE* cache, sec_t sector, sec_t numSectors, void*
unsigned int oldUsed = 0; unsigned int oldUsed = 0;
unsigned int oldAccess = cacheEntries[0].last_access; unsigned int oldAccess = cacheEntries[0].last_access;
accessCounter++;
while(numSectors>0) while(numSectors>0)
{ {