diff --git a/nym-node/nym-node-requests/src/api/v1/node_load/models.rs b/nym-node/nym-node-requests/src/api/v1/node_load/models.rs index b95c59059e..dfea7b57d7 100644 --- a/nym-node/nym-node-requests/src/api/v1/node_load/models.rs +++ b/nym-node/nym-node-requests/src/api/v1/node_load/models.rs @@ -52,7 +52,9 @@ impl Load { impl From for Load { fn from(value: f64) -> Self { - if value <= 0.1 { + if value == 0. || value.is_nan() || value.is_infinite() { + Self::Unknown + } else if value <= 0.1 { Self::Negligible } else if value <= 0.3 { Self::Low