From b06c15876401450a6a272663be5d0084426440b9 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 30 Jul 2020 00:02:36 +0200 Subject: [PATCH] drc_proto: thou shalt count rule hits from 1, not 0 --- qa/drc_proto/drc_test_provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/drc_proto/drc_test_provider.cpp b/qa/drc_proto/drc_test_provider.cpp index d5be23f4b8..b321dd1164 100644 --- a/qa/drc_proto/drc_test_provider.cpp +++ b/qa/drc_proto/drc_test_provider.cpp @@ -75,7 +75,7 @@ void test::DRC_TEST_PROVIDER::accountCheck( test::DRC_RULE* ruleToTest ) { auto it = m_stats.find( ruleToTest ); if( it == m_stats.end() ) - m_stats[ ruleToTest ] = 0; + m_stats[ ruleToTest ] = 1; else it->second++; }