drc_proto: thou shalt count rule hits from 1, not 0

This commit is contained in:
Tomasz Wlostowski 2020-07-30 00:02:36 +02:00
parent 8de484eff3
commit b06c158764
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}