]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
spelling: descriptions
authorJosh Soref <jsoref@users.noreply.github.com>
Thu, 11 Mar 2021 03:33:19 +0000 (22:33 -0500)
committerJosh Soref <jsoref@users.noreply.github.com>
Fri, 12 Mar 2021 14:22:44 +0000 (09:22 -0500)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
pdns/statbag.cc
pdns/statbag.hh

index a1e0eef3e4ec2fdc256ba465bfab0c234c5e119e..4350250eb22d32eb41d4e58431fb294561811ff1 100644 (file)
@@ -44,7 +44,7 @@ StatBag::StatBag()
 
 void StatBag::exists(const string &key)
 {
-  if(!d_keyDescrips.count(key))
+  if(!d_keyDescriptions.count(key))
     {
       throw PDNSException("Trying to deposit into unknown StatBag key '"+key+"'");
     }
@@ -99,7 +99,7 @@ vector<string>StatBag::getEntries()
 string StatBag::getDescrip(const string &item)
 {
   exists(item);
-  return d_keyDescrips[item];
+  return d_keyDescriptions[item];
 }
 
 StatType StatBag::getStatType(const string &item)
@@ -122,7 +122,7 @@ void StatBag::declare(const string &key, const string &descrip, StatType statTyp
 
   auto i=make_unique<AtomicCounter>(0);
   d_stats[key]=std::move(i);
-  d_keyDescrips[key]=descrip;
+  d_keyDescriptions[key]=descrip;
   d_statTypes[key]=statType;
 }
 
@@ -133,7 +133,7 @@ void StatBag::declare(const string &key, const string &descrip, StatBag::func_t
   }
 
   d_funcstats[key]=std::move(func);
-  d_keyDescrips[key]=descrip;
+  d_keyDescriptions[key]=descrip;
   d_statTypes[key]=statType;
 }
 
index f1af4d9a5be06c0d0b9f59b2fb136a417a531b35..ce5030dbaab21729ad559ea3fa458fc4340793f2 100644 (file)
@@ -71,7 +71,7 @@ enum class StatType : uint8_t {
 class StatBag
 {
   map<string, std::unique_ptr<AtomicCounter>> d_stats;
-  map<string, string> d_keyDescrips;
+  map<string, string> d_keyDescriptions;
   map<string, StatType> d_statTypes;
   map<string,StatRing<string, CIStringCompare> >d_rings;
   map<string,StatRing<SComboAddress> >d_comboRings;