diff --git a/rustfs/src/admin/handlers/replication.rs b/rustfs/src/admin/handlers/replication.rs index 6eaa5da6f..cb06ec828 100644 --- a/rustfs/src/admin/handlers/replication.rs +++ b/rustfs/src/admin/handlers/replication.rs @@ -348,9 +348,10 @@ impl RemoteTargetRequest { } /// Admin-response encoding of a remote target: the persisted bucket-targets -/// format keeps `healthCheckDuration`/`totalDowntime` in seconds, but madmin -/// decodes them as Go `time.Duration` (nanoseconds) — re-encode just those -/// fields without touching the persistence wire format. +/// format keeps `healthCheckDuration`/`totalDowntime` in seconds and the +/// `latency` stats in milliseconds, but madmin decodes all of them as Go +/// `time.Duration` (nanoseconds) — re-encode just those fields without +/// touching the persistence wire format. fn remote_target_admin_json(target: &BucketTarget) -> Result { fn go_duration_nanos(duration: Duration) -> serde_json::Value { // Saturate instead of truncating: >u64::MAX nanoseconds (~584 years) @@ -361,6 +362,11 @@ fn remote_target_admin_json(target: &BucketTarget) -> Result