Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Aug 16, 2024
1 parent f832f98 commit 882b84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ylt/metric/counter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class basic_dynamic_counter : public dynamic_metric {

auto now = std::chrono::system_clock::now();
std::lock_guard lock(mtx_);
std::erase_if(value_map_, [&now](auto &pair) {
std::erase_if(value_map_, [&now](auto &pair) mutable {
bool r = std::chrono::duration_cast<std::chrono::seconds>(
now - pair.second.get_created_time())
.count() >= ylt_label_max_age.count();
Expand Down

0 comments on commit 882b84c

Please sign in to comment.