Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 634 for float64 (0.21 sec)

  1. api/next/60427.txt

    pkg reflect, type Type interface, OverflowComplex(complex128) bool #60427
    pkg reflect, type Type interface, OverflowFloat(float64) bool #60427
    pkg reflect, type Type interface, OverflowInt(int64) bool #60427
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 28 14:08:38 GMT 2024
    - 275 bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/monitor_test.go

    	test2Want2 := make(map[BucketOptions]Details)
    	test2Want2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{
    		LimitInBytesPerSecond:            1024 * 1024,
    		CurrentBandwidthInBytesPerSecond: exponentialMovingAverage(betaBucket, float64(oneMiB), 2*float64(oneMiB)),
    	}
    
    	test1ActiveBuckets := make(map[BucketOptions]*bucketMeasurement)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. internal/s3select/sql/funceval.go

    	}
    }
    
    func floatCast(v *Value) (float64, error) {
    	switch x := v.value.(type) {
    	case float64:
    		return x, nil
    	case int64:
    		return float64(x), nil
    	case string:
    		f, err := strconv.ParseFloat(strings.TrimSpace(x), 64)
    		if err != nil {
    			return 0, errCastFailure("could not parse as float")
    		}
    		return f, nil
    	case []byte:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  4. cmd/data-usage-utils.go

    		metrics = append(metrics, MetricV2{
    			Description:    getClusterTransitionedBytesMD(),
    			Value:          float64(st.TotalSize),
    			VariableLabels: map[string]string{"tier": tier},
    		})
    		metrics = append(metrics, MetricV2{
    			Description:    getClusterTransitionedObjectsMD(),
    			Value:          float64(st.NumObjects),
    			VariableLabels: map[string]string{"tier": tier},
    		})
    		metrics = append(metrics, MetricV2{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/metrics-v2_test.go

    package cmd
    
    import (
    	"testing"
    	"time"
    
    	"github.com/prometheus/client_golang/prometheus"
    )
    
    func TestGetHistogramMetrics(t *testing.T) {
    	histBuckets := []float64{0.05, 0.1, 0.25, 0.5, 0.75}
    	labels := []string{"GetObject", "PutObject", "CopyObject", "CompleteMultipartUpload"}
    	ttfbHist := prometheus.NewHistogramVec(
    		prometheus.HistogramOpts{
    			Name:    "s3_ttfb_seconds",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. internal/lsync/lrwmutex.go

    			// return false anyways for both situations.
    			return false
    		default:
    			if lm.lock(id, source, isWriteLock) {
    				return true
    			}
    			time.Sleep(time.Duration(r.Float64() * float64(lockRetryInterval)))
    		}
    	}
    }
    
    // Unlock unlocks the write lock.
    //
    // It is a run-time error if lm is not locked on entry to Unlock.
    func (lm *LRWMutex) Unlock() {
    	isWriteLock := true
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    <pre>
    const (
    	c1 = imag(2i)                    // imag(2i) = 2.0 is a constant
    	c2 = len([10]float64{2})         // [10]float64{2} contains no function calls
    	c3 = len([10]float64{c1})        // [10]float64{c1} contains no function calls
    	c4 = len([10]float64{imag(2i)})  // imag(2i) is a constant and no function call is issued
    	c5 = len([10]float64{imag(z)})   // invalid: imag(z) is a (non-constant) function call
    )
    var z complex128
    </pre>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  8. cmd/dynamic-timeouts.go

    	failures, max := 0, time.Duration(0)
    	for _, dur := range entries[:] {
    		if dur == maxDuration {
    			failures++
    		} else if dur > max {
    			max = dur
    		}
    	}
    
    	failPct := float64(failures) / float64(len(entries))
    
    	if failPct > dynamicTimeoutIncreaseThresholdPct {
    		// We are hitting the timeout too often, so increase the timeout by 25%
    		timeout := atomic.LoadInt64(&dt.timeout) * 125 / 100
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  9. internal/s3select/json/record.go

    func NewRecord(f sql.SelectObjectFormat) *Record {
    	return &Record{
    		KVS:          jstream.KVS{},
    		SelectFormat: f,
    	}
    }
    
    // jsonFloat converts a float to string similar to Go stdlib formats json floats.
    func jsonFloat(f float64) string {
    	var tmp [32]byte
    	dst := tmp[:0]
    
    	// Convert as if by ES6 number to string conversion.
    	// This matches most other JSON generators.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  10. api/go1.21.txt

    pkg log/slog, func ErrorContext(context.Context, string, ...interface{}) #61200
    pkg log/slog, func Error(string, ...interface{}) #56345
    pkg log/slog, func Float64(string, float64) Attr #56345
    pkg log/slog, func Float64Value(float64) Value #56345
    pkg log/slog, func Group(string, ...interface{}) Attr #59204
    pkg log/slog, func GroupValue(...Attr) Value #56345
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
Back to top