mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 21:42:56 +00:00
fix pageserver_evictions_with_low_residence_duration metric (#3925)
It was doing the comparison in the wrong way.
This commit is contained in:
committed by
GitHub
parent
22f9ea5fe2
commit
d2aa31f0ce
@@ -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`")
|
||||
|
||||
Reference in New Issue
Block a user