mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Get the logic right.
This commit is contained in:
@@ -116,7 +116,7 @@ template<typename c_Key, typename c_Data> void TaggedCache<c_Key, c_Data>::sweep
|
||||
{
|
||||
if (mTargetSize != 0)
|
||||
{
|
||||
target = mLastSweep - (mTargetAge * mCache.size() / mTargetSize);
|
||||
target = mLastSweep - (mTargetAge * mTargeSize / mCache.size());
|
||||
if (target > (mLastSweep - 2))
|
||||
target = mLastSweep - 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user