mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
add ruleguard support, fix all the reported issues (#10335)
This commit is contained in:
@@ -106,7 +106,7 @@ func healingMetricsPrometheus(ch chan<- prometheus.Metric) {
|
||||
}
|
||||
healMetricsNamespace := "self_heal"
|
||||
|
||||
dur := time.Duration(-1)
|
||||
var dur time.Duration
|
||||
if !bgSeq.lastHealActivity.IsZero() {
|
||||
dur = time.Since(bgSeq.lastHealActivity)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user