Don't print unused pressure classes.

This commit is contained in:
Jakob Stoklund Olesen
2018-01-17 09:52:31 -08:00
parent 457e161974
commit 5463fde203

View File

@@ -258,7 +258,7 @@ impl fmt::Display for Pressure {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Pressure[")?;
for rc in &self.toprc {
if rc.limit > 0 {
if rc.limit > 0 && rc.limit < !0 {
write!(f, " {}+{}/{}", rc.base_count, rc.transient_count, rc.limit)?;
}
}