Skip to content

Commit 68c40ee

Browse files
authored
fix(dogstatsd): fix reversed aggregation mode logic (#589)
1 parent 4f46196 commit 68c40ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics-exporter-dogstatsd/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ impl State {
6565

6666
fn get_aggregation_timestamp(&self) -> Option<u64> {
6767
match self.config.agg_mode {
68-
AggregationMode::Conservative => {
68+
AggregationMode::Aggressive => {
6969
SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).ok().map(|d| d.as_secs())
7070
}
71-
AggregationMode::Aggressive => None,
71+
AggregationMode::Conservative => None,
7272
}
7373
}
7474

0 commit comments

Comments
 (0)