#else
::arg().set("stack-size", "stack size per mthread") = "200000";
#endif
- // This mode forces metrics snap updates and dsiable root-refresh, to get consistent counters
+ // This mode forces metrics snap updates and disable root-refresh, to get consistent counters
::arg().setSwitch("devonly-regression-test-mode", "internal use only") = "no";
::arg().set("soa-minimum-ttl", "Don't change") = "0";
::arg().set("no-shuffle", "Don't change") = "off";
numberOfCounters
};
-// double avegares times, weighted according to how many packets they processed
+// double averages times, weighted according to how many packets they processed
enum class DoubleWAvgCounter : uint8_t
{
avgLatencyUsec,
struct Counters
{
- // An aray of simple counters
+ // An array of simple counters
std::array<uint64_t, static_cast<size_t>(Counter::numberOfCounters)> uint64Count{};
struct WeightedAverage
// for averages, we should take the weights into account. Histograms need to sum all individual counts.
Counters& merge(const Counters& data);
- // The following accessors select the rightcounter type based on the index type
+ // The following accessors select the right counter type based on the index type
uint64_t& at(Counter index)
{
return uint64Count.at(static_cast<size_t>(index));