Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 924 for FLOAT64 (0.42 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    func partition64(rands *rand.Rand, n int, x float64, consume func(int, float64)) {
    	if n <= 0 {
    		return
    	}
    	divs := make([]float64, n-1)
    	for idx := range divs {
    		divs[idx] = float64(rands.Float64())
    	}
    	sort.Float64s(divs)
    	var last float64
    	for idx, div := range divs {
    		div32 := float64(div)
    		delta := div32 - last
    		consume(idx, delta*x)
    		last = div32
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-health.go

    	storageInfo := clusterDriveMetrics.storageInfo
    
    	m.Set(healthCapacityRawTotalBytes, float64(GetTotalCapacity(storageInfo.Disks)))
    	m.Set(healthCapacityRawFreeBytes, float64(GetTotalCapacityFree(storageInfo.Disks)))
    	m.Set(healthCapacityUsableTotalBytes, float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)))
    	m.Set(healthCapacityUsableFreeBytes, float64(GetTotalUsableCapacityFree(storageInfo.Disks, storageInfo)))
    
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/json/json_test.go

    				false,
    				int64(0),
    				int64(math.MaxInt64),
    				float64(0.0),
    				float64(0.5),
    				float64(1.0),
    				float64(math.MaxFloat64),
    				string("0"),
    				string("A"),
    				string("Iñtërnâtiônàlizætiøn"),
    				[]interface{}{nil, true, int64(1), float64(1.0), float64(1.5)},
    				map[string]interface{}{"nullkey": nil, "boolkey": true, "intkey": int64(1), "floatkey": float64(1.0)},
    			},
    			Out: `[` + strings.Join([]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:02:09 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  4. src/math/floor_riscv64.s

    	/* rounding will drop signed bit in RISCV, restore it */; \
    	FSGNJD	F0, F1, F0;	\
    	MOVD	F0, ret+8(FP); 	\
    	RET
    
    // func archFloor(x float64) float64
    ROUNDFN(·archFloor, RDN)
    
    // func archCeil(x float64) float64
    ROUNDFN(·archCeil, RUP)
    
    // func archTrunc(x float64) float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 08:34:12 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. src/runtime/metrics/value.go

    	if v.kind != KindUint64 {
    		panic("called Uint64 on non-uint64 metric value")
    	}
    	return v.scalar
    }
    
    // Float64 returns the internal float64 value for the metric.
    //
    // If v.Kind() != KindFloat64, this method panics.
    func (v Value) Float64() float64 {
    	if v.kind != KindFloat64 {
    		panic("called Float64 on non-float64 metric value")
    	}
    	return math.Float64frombits(v.scalar)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	Reset() IntegratorResults
    }
    
    // IntegratorResults holds statistical abstracts of the integration
    type IntegratorResults struct {
    	Duration  float64 //seconds
    	Average   float64 //time-weighted
    	Deviation float64 //standard deviation: sqrt(avg((value-avg)^2))
    	Min, Max  float64
    }
    
    // Equal tests for semantic equality.
    // This considers all NaN values to be equal to each other.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  7. src/internal/trace/gc_test.go

    		window time.Duration
    		want   float64
    		worst  []float64
    	}{
    		{0, 0, []float64{}},
    		{time.Millisecond, 0, []float64{0, 0}},
    		{time.Second, 0, []float64{0, 0}},
    		{2 * time.Second, 0.5, []float64{0.5, 0.5}},
    		{3 * time.Second, 1 / 3.0, []float64{1 / 3.0}},
    		{4 * time.Second, 0.5, []float64{0.5}},
    		{5 * time.Second, 3 / 5.0, []float64{3 / 5.0}},
    		{6 * time.Second, 3 / 5.0, []float64{3 / 5.0}},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. cmd/metrics-v3-system-memory.go

    		return err
    	}
    
    	m.Set(memTotal, float64(memMetrics.Total))
    	m.Set(memUsed, float64(memMetrics.Used))
    	usedPerc := float64(memMetrics.Used) * 100 / float64(memMetrics.Total)
    	m.Set(memUsedPerc, usedPerc)
    	m.Set(memFree, float64(memMetrics.Free))
    	m.Set(memBuffers, float64(memMetrics.Buffers))
    	m.Set(memCache, float64(memMetrics.Cache))
    	m.Set(memShared, float64(memMetrics.Shared))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Apr 17 05:10:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds.go

    func SeatsTimesDuration(seats float64, duration time.Duration) SeatSeconds {
    	return SeatSeconds(int64(math.Round(seats * float64(duration/time.Nanosecond) / (1e9 / ssScale))))
    }
    
    // ToFloat converts to a floating-point representation.
    // This conversion may lose precision.
    func (ss SeatSeconds) ToFloat() float64 {
    	return float64(ss) / ssScale
    }
    
    // DurationPerSeat returns duration per seat.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 09:16:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    		{"ns", []string{"ns", "nanosecond"}, float64(time.Nanosecond)},
    		{"us", []string{"μs", "us", "microsecond"}, float64(time.Microsecond)},
    		{"ms", []string{"ms", "millisecond"}, float64(time.Millisecond)},
    		{"s", []string{"s", "sec", "second"}, float64(time.Second)},
    		{"hrs", []string{"hour", "hr"}, float64(time.Hour)},
    	},
    	DefaultUnit: Unit{"s", []string{}, float64(time.Second)},
    }, {
    	Units: []Unit{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top