Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LastMin (0.15 sec)

  1. cmd/bucket-stats.go

    type ReplicationLastHour struct {
    	Totals  [60]AccElem
    	LastMin int64
    }
    
    // Merge data of two ReplicationLastHour structure
    func (l ReplicationLastHour) merge(o ReplicationLastHour) (merged ReplicationLastHour) {
    	if l.LastMin > o.LastMin {
    		o.forwardTo(l.LastMin)
    		merged.LastMin = l.LastMin
    	} else {
    		l.forwardTo(o.LastMin)
    		merged.LastMin = o.LastMin
    	}
    
    	for i := range merged.Totals {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  2. cmd/bucket-stats_gen.go

    				err = z.Totals[za0001].DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Totals", za0001)
    					return
    				}
    			}
    		case "LastMin":
    			z.LastMin, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "LastMin")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  3. cmd/bucket-targets.go

    }
    
    type latencyStat struct {
    	lastmin lastMinuteLatency
    	curr    time.Duration
    	avg     time.Duration
    	peak    time.Duration
    	N       int64
    }
    
    func (l *latencyStat) update(d time.Duration) {
    	l.lastmin.add(d)
    	l.N++
    	if d > l.peak {
    		l.peak = d
    	}
    	l.curr = l.lastmin.getTotal().avg()
    	l.avg = time.Duration((int64(l.avg)*(l.N-1) + int64(l.curr)) / l.N)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top