Commit e680d7ee authored by Alexander Travov's avatar Alexander Travov Committed by oroulet

Fix off-by-one error in continuation point calculation.

parent 9d5861ad
......@@ -152,7 +152,7 @@ class HistoryDict(HistoryStorageInterface):
results = results[:nb_values]
if len(results) > self.max_history_data_response_size:
cont = results[self.max_history_data_response_size + 1].SourceTimestamp
cont = results[self.max_history_data_response_size].SourceTimestamp
results = results[:self.max_history_data_response_size]
return results, cont
......@@ -202,7 +202,7 @@ class HistoryDict(HistoryStorageInterface):
results = results[:nb_values]
if len(results) > self.max_history_data_response_size:
cont = results[self.max_history_data_response_size + 1].Time
cont = results[self.max_history_data_response_size].Time
results = results[:self.max_history_data_response_size]
return results, cont
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment