Skip to content

Commit

Permalink
[RUNTIME] Move min_repeat_ms to c++ runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Nov 30, 2018
1 parent dc84775 commit 5f99d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/rpc/rpc_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ PackedFunc WrapTimeEvaluator(PackedFunc pf,

if (duration_ms < min_repeat_ms) {
number = static_cast<int>(std::max((min_repeat_ms / (duration_ms / number) + 1),
number * 1.618));
number * 1.618));
}
} while (duration_ms < min_repeat_ms);

Expand Down

0 comments on commit 5f99d62

Please sign in to comment.