mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: should call func globalOSMetrics.time(s)() when updateOSMetrics (#18209)
This commit is contained in:
@@ -105,7 +105,8 @@ func osTrace(s osMetric, startTime time.Time, duration time.Duration, path strin
|
||||
|
||||
func updateOSMetrics(s osMetric, paths ...string) func(err error) {
|
||||
if globalTrace.NumSubscribers(madmin.TraceOS) == 0 {
|
||||
return func(err error) { globalOSMetrics.time(s) }
|
||||
osAction := globalOSMetrics.time(s)
|
||||
return func(err error) { osAction() }
|
||||
}
|
||||
|
||||
startTime := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user