Skip to content

Commit

Permalink
test glob patterning to check src files 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Do committed Feb 6, 2024
1 parent 8c6c4ed commit 985c420
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/samples/cpp/aggregator/src/aggregator_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ double AggregatorCore::raw_frequency() const

double AggregatorCore::filtered_frequency() const
{

if (latest_filtered_time_ <= start_) {
return 0.0;
return 1.0;
}
return static_cast<double>(filtered_msg_count_) / (latest_filtered_time_ - start_);
}
Expand Down

0 comments on commit 985c420

Please sign in to comment.