Skip to content
Snippets Groups Projects
Commit c29a902e authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-14988 Overflow can keep flexi from updating

parent 23ad54c5
No related branches found
No related tags found
No related merge requests found
...@@ -389,7 +389,8 @@ void LLVolumeImplFlexible::doIdleUpdate() ...@@ -389,7 +389,8 @@ void LLVolumeImplFlexible::doIdleUpdate()
U64 throttling_delay = (virtual_frame_num + id) % update_period; U64 throttling_delay = (virtual_frame_num + id) % update_period;
if ((throttling_delay == 0 && mLastFrameNum < virtual_frame_num) //one or more virtual frames per frame if ((throttling_delay == 0 && mLastFrameNum < virtual_frame_num) //one or more virtual frames per frame
|| (mLastFrameNum + update_period < virtual_frame_num)) // missed virtual frame || (mLastFrameNum + update_period < virtual_frame_num) // missed virtual frame
|| mLastFrameNum > virtual_frame_num) // overflow
{ {
// We need mLastFrameNum to compensate for 'unreliable time' and to filter 'duplicate' frames // We need mLastFrameNum to compensate for 'unreliable time' and to filter 'duplicate' frames
// If happened too late, subtract throttling_delay (it is zero otherwise) // If happened too late, subtract throttling_delay (it is zero otherwise)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment