]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 12 Dec 2022 17:09:48 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 17:09:48 +0000 (18:09 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/recursordist/rec-main.cc
pdns/recursordist/rec-tcounters.hh

index a74515ff5783db076c811093243a5caa1844872b..b30f7fa26266e371781933ccbd3a9d93c61a0c81 100644 (file)
@@ -2601,7 +2601,7 @@ int main(int argc, char** argv)
 #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";
index d315192b38eedeac0bb97ca92c88e7bc4fe7fbe8..d9f7040a462d409dcfbe172f67bda38abc3a6021 100644 (file)
@@ -95,7 +95,7 @@ enum class Counter : uint8_t
   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,
@@ -126,7 +126,7 @@ enum class Histogram : uint8_t
 
 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
@@ -187,7 +187,7 @@ struct Counters
   // 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));