Skip to content

Commit

Permalink
fix is_monotonic logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Sep 7, 2023
1 parent af38971 commit 7afca53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ class DefaultAggregation
static AggregationType GetDefaultAggregationType(InstrumentType instrument_type,
bool &is_monotonic)
{
is_monotonic = true;
is_monotonic = false;
switch (instrument_type)
{
case InstrumentType::kCounter:
case InstrumentType::kObservableCounter:
is_monotonic = false;
is_monotonic = true;
return AggregationType::kSum;
case InstrumentType::kUpDownCounter:
case InstrumentType::kObservableUpDownCounter:
Expand Down

0 comments on commit 7afca53

Please sign in to comment.