Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 912 for FLOAT64 (0.1 sec)

  1. 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)
  2. cmd/metrics.go

    			Buckets: []float64{.05, .1, .25, .5, 1, 2.5, 5, 10},
    		},
    		[]string{"api"},
    	)
    	bucketHTTPRequestsDuration = prometheus.NewHistogramVec(
    		prometheus.HistogramOpts{
    			Name:    "s3_ttfb_seconds",
    			Help:    "Time taken by requests served by current MinIO server instance per bucket",
    			Buckets: []float64{.05, .1, .25, .5, 1, 2.5, 5, 10},
    		},
    		[]string{"api", "bucket"},
    	)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/runtime/mgcpacer_test.go

    	// These are produced by the simulation, so int64 and
    	// float64 are more appropriate, so that we can check for
    	// bad states in the simulation.
    	heapScannable int64
    	gcUtilization float64
    }
    
    func (r *gcCycleResult) goalRatio() float64 {
    	return float64(r.heapPeak) / float64(r.heapGoal)
    }
    
    func (r *gcCycleResult) runway() float64 {
    	return float64(r.heapGoal - r.heapTrigger)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  4. src/math/rand/v2/regress_test.go

    	float64(0.6047654075331631),  // Float64()
    	float64(0.9278107175107462),  // Float64()
    	float64(0.16387541502137226), // Float64()
    	float64(0.7263900707339023),  // Float64()
    	float64(0.6974917552729882),  // Float64()
    	float64(0.7640946923790318),  // Float64()
    	float64(0.7188183661358182),  // Float64()
    	float64(0.5856191500346635),  // Float64()
    	float64(0.9549597149363428),  // Float64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/math/ldexp.go

    //
    // Special cases are:
    //
    //	Ldexp(±0, exp) = ±0
    //	Ldexp(±Inf, exp) = ±Inf
    //	Ldexp(NaN, exp) = NaN
    func Ldexp(frac float64, exp int) float64 {
    	if haveArchLdexp {
    		return archLdexp(frac, exp)
    	}
    	return ldexp(frac, exp)
    }
    
    func ldexp(frac float64, exp int) float64 {
    	// special cases
    	switch {
    	case frac == 0:
    		return frac // correctly return -0
    	case IsInf(frac, 0) || IsNaN(frac):
    		return frac
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. pkg/kubelet/metrics/collectors/resource_metrics.go

    	if s.CPU == nil || s.CPU.UsageCoreNanoSeconds == nil {
    		return
    	}
    
    	ch <- metrics.NewLazyMetricWithTimestamp(s.CPU.Time.Time,
    		metrics.NewLazyConstMetric(nodeCPUUsageDesc, metrics.CounterValue, float64(*s.CPU.UsageCoreNanoSeconds)/float64(time.Second)))
    }
    
    func (rc *resourceMetricsCollector) collectNodeMemoryMetrics(ch chan<- metrics.Metric, s summary.NodeStats) {
    	if s.Memory == nil || s.Memory.WorkingSetBytes == nil {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 07:13:37 UTC 2023
    - 9.2K bytes
    - Viewed (2)
  7. cmd/metrics-v3-bucket-replication.go

    					m.Set(bucketReplProxiedHeadRequestsTotal, float64(s.ProxyStats.HeadTotal), labels...)
    					m.Set(bucketReplProxiedPutTaggingRequestsFailures, float64(s.ProxyStats.PutTagFailedTotal), labels...)
    					m.Set(bucketReplProxiedPutTaggingRequestsTotal, float64(s.ProxyStats.PutTagTotal), labels...)
    					m.Set(bucketReplSentCount, float64(stat.ReplicatedCount), labels...)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/math/floor_noasm.go

    package math
    
    const haveArchFloor = false
    
    func archFloor(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchCeil = false
    
    func archCeil(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchTrunc = false
    
    func archTrunc(x float64) float64 {
    	panic("not implemented")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 08:34:12 UTC 2024
    - 543 bytes
    - Viewed (0)
  9. cmd/bucket-replication-metrics.go

    		Peak:    peak,
    		Curr:    curr,
    		measure: rx.measure,
    		N:       rx.N + o.N,
    	}
    }
    
    func calcAvg(x, y float64, n1, n2 int64) float64 {
    	if n1+n2 == 0 {
    		return 0
    	}
    	avg := (x*float64(n1) + y*float64(n2)) / float64(n1+n2)
    	return avg
    }
    
    // Add a new transfer
    func (rx *XferStats) addSize(sz int64, t time.Duration) {
    	if rx.measure == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. cmd/metrics-resource.go

    	Labels map[string]string
    
    	// value captured in current cycle
    	Current float64
    
    	// Used when system provides cumulative (since uptime) values
    	// helps in calculating the current value by comparing the new
    	// cumulative value with previous one
    	Cumulative float64
    
    	Max   float64
    	Avg   float64
    	Sum   float64
    	Count uint64
    }
    
    func init() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 15:15:13 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top