MCPcopy Create free account
hub / github.com/NetSys/bess / MaxFlowPkts

Method MaxFlowPkts

core/modules/flowgen.cc:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85inline double FlowGen::MaxFlowPkts() const {
86 switch (duration_) {
87 case Duration::kUniform:
88 return flow_pkts_;
89 case Duration::kPareto:
90 return scaled_pareto_variate(pareto_.inversed_alpha, pareto_.mean,
91 flow_pkts_, 1.0);
92 default:
93 CHECK(0);
94 }
95 return 0;
96}
97
98inline uint64_t FlowGen::NextFlowArrival() {
99 switch (arrival_) {

Callers

nothing calls this directly

Calls 1

scaled_pareto_variateFunction · 0.85

Tested by

no test coverage detected