- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for addSizes (0.04 sec)
-
cmd/site-replication-metrics.go
Bytes: rt.SinceUptime.Bytes, }, ErrCounts: errCounts, } } func (rt *RTimedMetrics) addsize(size int64, err error) { // failures seen since uptime atomic.AddInt64(&rt.SinceUptime.Bytes, size) atomic.AddInt64(&rt.SinceUptime.Count, 1) rt.LastMinute.addsize(size) rt.LastHour.addsize(size) if err != nil && minio.ToErrorResponse(err).Code == "AccessDenied" { if rt.ErrCounts == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 8.2K bytes - Viewed (0) -
cmd/data-scanner-metric.go
startTime := time.Now() return func(sz int) { duration := time.Since(startTime) atomic.AddUint64(&p.operations[s], 1) if s < scannerMetricLastRealtime { p.latency[s].addSize(duration, int64(sz)) } } } // incTime will increment time on metric s with a specific duration. // Use for s < scannerMetricLastRealtime func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 25 05:15:31 UTC 2023 - 9.1K bytes - Viewed (0)