MCPcopy Create free account
hub / github.com/apple/foundationdb / setRate

Method setRate

fdbserver/GrvProxyServer.actor.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 void setRate(double rate) {
226 ASSERT(rate >= 0 && rate != std::numeric_limits<double>::infinity() && !std::isnan(rate));
227
228 this->rate = rate;
229 if (disabled) {
230 smoothRate.reset(rate);
231 disabled = false;
232 } else {
233 smoothRate.setTotal(rate);
234 }
235 }
236};
237
238struct GrvProxyData {

Callers 1

whenFunction · 0.80

Calls 3

isnanFunction · 0.85
setTotalMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected