diff --git a/Cargo.lock b/Cargo.lock index ff2531307a..a3e1b57e5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4739,7 +4739,7 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "nym-api" -version = "1.1.73" +version = "1.1.74" dependencies = [ "anyhow", "async-trait", diff --git a/nym-api/Cargo.toml b/nym-api/Cargo.toml index 4af3e64aec..d4c9e1689e 100644 --- a/nym-api/Cargo.toml +++ b/nym-api/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "nym-api" license = "GPL-3.0" -version = "1.1.73" +version = "1.1.74" authors.workspace = true edition = "2021" rust-version.workspace = true diff --git a/nym-api/src/support/storage/manager.rs b/nym-api/src/support/storage/manager.rs index 6b1283760d..bf053e8a58 100644 --- a/nym-api/src/support/storage/manager.rs +++ b/nym-api/src/support/storage/manager.rs @@ -1647,7 +1647,7 @@ impl StorageManager { let reliability = if total_samples == 0 { 0.0 // Default for no samples in this interval. Consider Option or filtering. } else { - state.pos_samples as f64 / total_samples as f64 + (state.pos_samples as f64 / total_samples as f64) * 100.0 }; // Attempt to fetch identity, first as mixnode, then as gateway if not found.