Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for TS (0.13 sec)

  1. src/arena/arena_test.go

    func TestSmoke(t *testing.T) {
    	a := arena.NewArena()
    	defer a.Free()
    
    	tt := arena.New[T1](a)
    	tt.n = 1
    
    	ts := arena.MakeSlice[T1](a, 99, 100)
    	if len(ts) != 99 {
    		t.Errorf("Slice() len = %d, want 99", len(ts))
    	}
    	if cap(ts) != 100 {
    		t.Errorf("Slice() cap = %d, want 100", cap(ts))
    	}
    	ts[1].n = 42
    }
    
    func TestSmokeLarge(t *testing.T) {
    	a := arena.NewArena()
    	defer a.Free()
    	for i := 0; i < 10*64; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 742 bytes
    - Viewed (0)
  2. internal/s3select/parquet/reader.go

    			if ts := logicalType.GetTIMESTAMP(); ts != nil {
    				var duration time.Duration
    				// Only support UTC normalized timestamps.
    				if ts.IsAdjustedToUTC {
    					switch {
    					case ts.Unit.IsSetNANOS():
    						duration = time.Duration(val) * time.Nanosecond
    					case ts.Unit.IsSetMILLIS():
    						duration = time.Duration(val) * time.Millisecond
    					case ts.Unit.IsSetMICROS():
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle.go

    					}
    				}
    			} else {
    				ts := tierStats{
    					TotalSize:   uint64(task.objInfo.Size),
    					NumVersions: 1,
    				}
    				if task.objInfo.IsLatest {
    					ts.NumObjects = 1
    				}
    				t.addLastDayStats(task.event.StorageClass, ts)
    			}
    			t.activeTasks.Add(-1)
    		}
    	}
    }
    
    func (t *transitionState) addLastDayStats(tier string, ts tierStats) {
    	t.lastDayMu.Lock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-cpu.go

    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    	tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    	cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    	m.Set(sysCPUUser, cpuUserVal)
    	cpuSystemVal := math.Round(ts.System/tot*100*100) / 100
    	m.Set(sysCPUSystem, cpuSystemVal)
    	cpuNiceVal := math.Round(ts.Nice/tot*100*100) / 100
    	m.Set(sysCPUNice, cpuNiceVal)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. cmd/tier-last-day-stats.go

    //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.
    func (l *lastDayTierStats) forwardTo(t time.Time) {
    	if t.IsZero() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. cmd/metrics-resource.go

    			}
    			if hm.CPU != nil {
    				labels := map[string]string{}
    				ts := hm.CPU.TimesStat
    				if ts != nil {
    					tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    					cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    					updateResourceMetrics(cpuSubsystem, cpuUser, cpuUserVal, labels, false)
    					cpuSystemVal := math.Round(ts.System/tot*100*100) / 100
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    			paxHdrs[paxKey] = v
    		}
    	}
    	verifyTime := func(ts time.Time, size int, name, paxKey string) {
    		if ts.IsZero() {
    			return // Always okay
    		}
    		if !fitsInBase256(size, ts.Unix()) {
    			whyNoGNU = fmt.Sprintf("GNU cannot encode %s=%v", name, ts)
    			format.mustNotBe(FormatGNU)
    		}
    		isMtime := paxKey == paxMtime
    		fitsOctal := fitsInOctal(size, ts.Unix())
    		if (isMtime && !fitsOctal) || !isMtime {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. internal/s3select/sql/funceval.go

    	if !ok {
    		return nil, fmt.Errorf("QUANTITY must be a numeric argument to %s()", sqlFnDateAdd)
    	}
    
    	ts, err := d.Timestamp.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    	if err = inferTypeAsTimestamp(ts); err != nil {
    		return nil, err
    	}
    	t, ok := ts.ToTimestamp()
    	if !ok {
    		return nil, fmt.Errorf("%s() expects a timestamp argument", sqlFnDateAdd)
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  9. src/archive/tar/strconv.go

    	}
    	return time.Unix(secs, nsecs), nil
    }
    
    // formatPAXTime converts ts into a time of the form %d.%d as described in the
    // PAX specification. This function is capable of negative timestamps.
    func formatPAXTime(ts time.Time) (s string) {
    	secs, nsecs := ts.Unix(), ts.Nanosecond()
    	if nsecs == 0 {
    		return strconv.FormatInt(secs, 10)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  10. cmd/data-usage-cache.go

    type tierStats struct {
    	TotalSize   uint64 `msg:"ts"`
    	NumVersions int    `msg:"nv"`
    	NumObjects  int    `msg:"no"`
    }
    
    func (ts tierStats) add(u tierStats) tierStats {
    	return tierStats{
    		TotalSize:   ts.TotalSize + u.TotalSize,
    		NumVersions: ts.NumVersions + u.NumVersions,
    		NumObjects:  ts.NumObjects + u.NumObjects,
    	}
    }
    
    //msgp:tuple replicationStatsV1
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
Back to top