MCPcopy Create free account
hub / github.com/SIPp/sipp / updateRepartition

Method updateRepartition

src/stat.cpp:1032–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030
1031
1032void CStat::updateRepartition(T_dynamicalRepartition* P_tabReport,
1033 int P_sizeOfTab,
1034 unsigned long P_value)
1035{
1036 if(P_tabReport == nullptr) {
1037 return;
1038 }
1039
1040 for (int i = 0; i < P_sizeOfTab - 1; i++) {
1041 if (P_value < P_tabReport[i].borderMax) {
1042 P_tabReport[i].nbInThisBorder++;
1043 return;
1044 }
1045 }
1046
1047 /* If this is not true, we never should have gotten here. */
1048 assert(P_value >= P_tabReport[P_sizeOfTab-1].borderMax);
1049 P_tabReport[P_sizeOfTab-1].nbInThisBorder ++;
1050}
1051
1052void CStat::resetRepartition(T_dynamicalRepartition* P_tabReport,
1053 int P_sizeOfTab)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected