fixed cast

This commit is contained in:
Evan Tschannen 2021-01-27 14:12:18 -08:00
parent f30ae07a2d
commit 75b24da109
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ ACTOR Future<bool> quorumEqualsTrue( std::vector<Future<bool>> futures, int requ
ACTOR Future<Void> 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<int>(waitTime/FLOW_KNOBS->LOW_PRIORITY_MAX_DELAY,FLOW_KNOBS->LOW_PRIORITY_DELAY_COUNT);
while(loopCount < totalLoops) {
wait(delay(waitTime/totalLoops, TaskPriority::Low));