fix pageserver_evictions_with_low_residence_duration metric (#3925)

It was doing the comparison in the wrong way.
This commit is contained in:
Christian Schwarz
2023-03-31 18:25:53 +02:00
committed by GitHub
parent 22f9ea5fe2
commit d2aa31f0ce

View File

@@ -257,7 +257,7 @@ impl EvictionsWithLowResidenceDuration {
}
pub fn observe(&self, observed_value: Duration) {
if self.threshold < observed_value {
if observed_value < self.threshold {
self.counter
.as_ref()
.expect("nobody calls this function after `remove_from_vec`")