diff --git a/flow/genericactors.actor.cpp b/flow/genericactors.actor.cpp index 20ddb1f0c4..d0f730f3a9 100644 --- a/flow/genericactors.actor.cpp +++ b/flow/genericactors.actor.cpp @@ -86,7 +86,7 @@ ACTOR Future quorumEqualsTrue( std::vector> futures, int requ ACTOR Future lowPriorityDelay( double waitTime ) { state int loopCount = 0; - state int totalLoops = std::max(waitTime/FLOW_KNOBS->LOW_PRIORITY_MAX_DELAY,FLOW_KNOBS->LOW_PRIORITY_DELAY_COUNT); + state int totalLoops = std::max(waitTime/FLOW_KNOBS->LOW_PRIORITY_MAX_DELAY,FLOW_KNOBS->LOW_PRIORITY_DELAY_COUNT); while(loopCount < totalLoops) { wait(delay(waitTime/totalLoops, TaskPriority::Low));