Fix off by 100x
This commit is contained in:
Generated
+1
-1
@@ -4739,7 +4739,7 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
|
||||
|
||||
[[package]]
|
||||
name = "nym-api"
|
||||
version = "1.1.73"
|
||||
version = "1.1.74"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -1647,7 +1647,7 @@ impl StorageManager {
|
||||
let reliability = if total_samples == 0 {
|
||||
0.0 // Default for no samples in this interval. Consider Option<f64> 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.
|
||||
|
||||
Reference in New Issue
Block a user