diff --git a/src/app_data/container_state.rs b/src/app_data/container_state.rs index a54608d..26b3272 100644 --- a/src/app_data/container_state.rs +++ b/src/app_data/container_state.rs @@ -248,7 +248,7 @@ impl PartialEq for CpuStats { impl PartialOrd for CpuStats { fn partial_cmp(&self, other: &Self) -> Option { - self.0.partial_cmp(&other.0) + Some(self.cmp(other)) } } @@ -291,7 +291,7 @@ impl PartialEq for ByteStats { impl PartialOrd for ByteStats { fn partial_cmp(&self, other: &Self) -> Option { - self.0.partial_cmp(&other.0) + Some(self.cmp(other)) } }