fixed compression factor calculation due to previous commit

This commit is contained in:
thrust26 2018-01-29 17:13:17 +01:00
parent aa7dd33dc8
commit 9a3516b610
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ void RewindManager::setup()
// horizon not reachable?
if(myFactor == MAX_FACTOR)
break;
// sum up interval cycles (first and last state are not compressed)
for(uInt32 i = myUncompressed + 1; i < mySize - 1; ++i)
// sum up interval cycles (first state is not compressed)
for(uInt32 i = myUncompressed + 1; i < mySize; ++i)
{
interval *= myFactor;
cycleSum += interval;