Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addStats (0.13 sec)

  1. cmd/tier-last-day-stats.go

    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    //go:generate msgp -file=$GOFILE -unexported
    
    type lastDayTierStats struct {
    	Bins      [24]tierStats
    	UpdatedAt time.Time
    }
    
    func (l *lastDayTierStats) addStats(ts tierStats) {
    	now := time.Now()
    	l.forwardTo(now)
    
    	nowIdx := now.Hour()
    	l.Bins[nowIdx] = l.Bins[nowIdx].add(ts)
    }
    
    // forwardTo moves time to t, clearing entries between last update and t.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/internal/language/match.go

    			t.RegionID = Region(x.region)
    		}
    		return true
    	}
    	return false
    }
    
    // Maximize returns a new tag with missing tags filled in.
    func (t Tag) Maximize() (Tag, error) {
    	return addTags(t)
    }
    
    func addTags(t Tag) (Tag, error) {
    	// We leave private use identifiers alone.
    	if t.IsPrivateUse() {
    		return t, nil
    	}
    	if t.ScriptID != 0 && t.RegionID != 0 {
    		if t.LangID != 0 {
    			// already fully specified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top