From 9a3516b6106c45fde3483e1924765c63f62fe487 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 29 Jan 2018 17:13:17 +0100 Subject: [PATCH] fixed compression factor calculation due to previous commit --- src/common/RewindManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/RewindManager.cxx b/src/common/RewindManager.cxx index 41359a3b4..165eb1e19 100644 --- a/src/common/RewindManager.cxx +++ b/src/common/RewindManager.cxx @@ -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;