mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 18:09:17 +01:00
counter fix
This commit is contained in:
parent
1c6db0ae1b
commit
56261df0c7
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user