Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmr committed Jan 11, 2024
1 parent fbd63a4 commit 2a91b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1859,13 +1859,13 @@ void MicroProfileCsvConfigAddGroup(const char* Group, const char* Name)
void MicroProfileCsvConfigAddCounter(const char* CounterName, const char* Name)
{
MP_ASSERT(S.CsvConfig.State == MicroProfileCsvConfig::CONFIG);
if(S.CsvConfig.State == MicroProfileCsvConfig::CONFIG && S.CsvConfig.NumGroups < S.CsvConfig.MaxGroups)
if(S.CsvConfig.State == MicroProfileCsvConfig::CONFIG && S.CsvConfig.NumCounters < S.CsvConfig.MaxCounters)
{
MicroProfileToken Token = MicroProfileGetCounterToken(CounterName, MICROPROFILE_COUNTER_TOKEN_DONT_CREATE);
if(MICROPROFILE_INVALID_TOKEN != Token)
{
MP_ASSERT(Token < UINT16_MAX);
S.CsvConfig.pCounterNames[S.CsvConfig.NumTimers] = Name;
S.CsvConfig.pCounterNames[S.CsvConfig.NumCounters] = Name;
S.CsvConfig.CounterIndices[S.CsvConfig.NumCounters++] = (uint16_t)Token;
}
}
Expand Down

0 comments on commit 2a91b2a

Please sign in to comment.