Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for FLOAT64 (0.11 sec)

  1. src/cmd/trace/viewer.go

    		return traceviewer.GRunning
    	default:
    		panic(fmt.Sprintf("unknown GoState: %s", state.String()))
    	}
    }
    
    func viewerTime(t time.Duration) float64 {
    	return float64(t) / float64(time.Microsecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/metrics/metrics.go

    	listCacheNumReturned.WithLabelValues(resourcePrefix).Add(float64(numReturned))
    }
    
    // RecordResourceVersion sets the current resource version for a given resource type.
    func RecordResourceVersion(resourcePrefix string, resourceVersion uint64) {
    	watchCacheResourceVersion.WithLabelValues(resourcePrefix).Set(float64(resourceVersion))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 07:39:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/math/unsafe.go

    // and Float64bits(Float64frombits(x)) == x.
    func Float64bits(f float64) uint64 { return *(*uint64)(unsafe.Pointer(&f)) }
    
    // Float64frombits returns the floating-point number corresponding
    // to the IEEE 754 binary representation b, with the sign bit of b
    // and the result in the same bit position.
    // Float64frombits(Float64bits(x)) == x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. cmd/metrics-v3-cluster-config.go

    	clusterDriveMetrics, err := c.clusterDriveMetrics.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		m.Set(configStandardParity, float64(clusterDriveMetrics.storageInfo.Backend.StandardSCParity))
    		m.Set(configRRSParity, float64(clusterDriveMetrics.storageInfo.Backend.RRSCParity))
    	}
    
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. src/internal/types/testdata/spec/range_int.go

    		_ = i
    	}
    	for i := range 1i /* ERROR "cannot range over 1i (untyped complex constant (0 + 1i))" */ {
    		_ = i
    	}
    
    	var j float64
    	_ = j
    	for j /* ERROR "cannot use iteration variable of type float64" */ = range 1 {
    	}
    	for j = range 1.1 /* ERROR "cannot range over 1.1 (untyped float constant)" */ {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. cni/pkg/log/uds_test.go

    	out, err := io.ReadAll(r)
    	assert.NoError(t, err)
    
    	cases := []struct {
    		level string
    		msg   string
    		key   *float64
    	}{
    		{"debug", "debug log", nil},
    		{"info", "info log", nil},
    		{"warn", "warn log", nil},
    		{"error", "error log", nil},
    		{"info", "with labels", ptr.Of(float64(2))},
    	}
    	// For each level, there should be two lines, one from direct log,
    	// the other one from UDS server
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/go/constant/example_test.go

    	Ar, exact := constant.Float64Val(constant.Real(c))
    	if !exact {
    		fmt.Printf("Could not represent real part %s exactly as float64\n", constant.Real(c))
    	}
    	Ai, exact := constant.Float64Val(constant.Imag(c))
    	if !exact {
    		fmt.Printf("Could not represent imaginary part %s as exactly as float64\n", constant.Imag(c))
    	}
    	C := complex(Ar, Ai)
    
    	fmt.Println("literal", 25.3+55i)
    	fmt.Println("go/constant", c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    // It is similar to the standard flag.FlagSet.
    type FlagSet interface {
    	// Bool, Int, Float64, and String define new flags,
    	// like the functions of the same name in package flag.
    	Bool(name string, def bool, usage string) *bool
    	Int(name string, def int, usage string) *int
    	Float64(name string, def float64, usage string) *float64
    	String(name string, def string, usage string) *string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/internal/coverage/cformat/format.go

    func (fm *Formatter) EmitFuncs(w io.Writer) error {
    	if fm.cm == coverage.CtrModeInvalid {
    		panic("internal error, counter mode unset")
    	}
    	perc := func(covered, total uint64) float64 {
    		if total == 0 {
    			total = 1
    		}
    		return 100.0 * float64(covered) / float64(total)
    	}
    	tabber := tabwriter.NewWriter(w, 1, 8, 1, '\t', 0)
    	defer tabber.Flush()
    	allStmts := uint64(0)
    	covStmts := uint64(0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. pkg/test/framework/components/prometheus/kube.go

    }
    
    func (c *kubeComponent) QuerySum(cluster cluster.Cluster, query Query) (float64, error) {
    	val, err := c.Query(cluster, query)
    	if err != nil {
    		return 0, err
    	}
    	got, err := Sum(val)
    	if err != nil {
    		return 0, fmt.Errorf("could not find metric value: %v", err)
    	}
    	return got, nil
    }
    
    func Sum(val model.Value) (float64, error) {
    	if val.Type() != model.ValVector {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top