]> granicus.if.org Git - icinga2/commitdiff
Update variable names
authorJean Flach <jean-marcel.flach@icinga.com>
Wed, 22 Aug 2018 13:12:47 +0000 (15:12 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 20 Sep 2018 09:47:05 +0000 (11:47 +0200)
refs #6568

lib/config/configitem.cpp

index fd487b1db2e3b14b8ef6c8b6198b584f4ddd0b5b..b762bb3393cc04f3d65a11ba0704d02052dfbf82 100644 (file)
@@ -469,15 +469,15 @@ bool ConfigItem::CommitNewItems(const ActivationContext::Ptr& context, WorkQueue
                        if (unresolved_dep)
                                continue;
 
-                       int commited_items = 0;
-                       upq.ParallelFor(items, [&type, &commited_items](const ItemPair& ip) {
+                       int committed_items = 0;
+                       upq.ParallelFor(items, [&type, &committed_items](const ItemPair& ip) {
                                const ConfigItem::Ptr& item = ip.first;
 
                                if (item->m_Type != type)
                                        return;
 
                                ip.first->Commit(ip.second);
-                               commited_items++;
+                               committed_items++;
                        });
 
                        upq.Join();
@@ -485,9 +485,9 @@ bool ConfigItem::CommitNewItems(const ActivationContext::Ptr& context, WorkQueue
                        completed_types.insert(type);
 
 #ifdef I2_DEBUG
-                       if (commited_items > 0)
+                       if (committed_items > 0)
                                Log(LogDebug, "configitem")
-                                       << "Committed " << commited_items << " items of type '" << type->GetName() << "'.";
+                                       << "Committed " << committed_items << " items of type '" << type->GetName() << "'.";
 #endif /* I2_DEBUG */
 
                        if (upq.HasExceptions())