Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for FLOAT64 (0.17 sec)

  1. cmd/metrics-v3-ilm.go

    		m.Set(expiryPendingTasks, float64(globalExpiryState.PendingTasks()))
    	}
    	if globalTransitionState != nil {
    		m.Set(transitionActiveTasks, float64(globalTransitionState.ActiveTasks()))
    		m.Set(transitionPendingTasks, float64(globalTransitionState.PendingTasks()))
    		m.Set(transitionMissedImmediateTasks, float64(globalTransitionState.MissedImmediateTasks()))
    	}
    	m.Set(versionsScanned, float64(globalScannerMetrics.lifetime(scannerMetricILM)))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/testing/benchmark_test.go

    			})
    		}
    		// This metric is per-operation, so divide by b.N and
    		// report it as a "/op" unit.
    		b.ReportMetric(float64(compares)/float64(b.N), "compares/op")
    		// This metric is per-time, so divide by b.Elapsed and
    		// report it as a "/ns" unit.
    		b.ReportMetric(float64(compares)/float64(b.Elapsed().Nanoseconds()), "compares/ns")
    	})
    }
    
    func ExampleB_ReportMetric_parallel() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. cmd/metrics-v3-cluster-erasure-set.go

    		m.Set(erasureSetReadQuorum, float64(h.ReadQuorum), labels...)
    		m.Set(erasureSetWriteQuorum, float64(h.WriteQuorum), labels...)
    		m.Set(erasureSetOnlineDrivesCount, float64(h.HealthyDrives), labels...)
    		m.Set(erasureSetHealingDrivesCount, float64(h.HealingDrives), labels...)
    		m.Set(erasureSetHealth, b2f(h.Healthy), labels...)
    
    		readHealthy := true
    		readTolerance := float64(h.HealthyDrives - h.ReadQuorum)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 14 07:25:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/runtime/pprof/protomem.go

    		// if rate<1 treat as unknown and skip scaling.
    		return count, size
    	}
    
    	avgSize := float64(size) / float64(count)
    	scale := 1 / (1 - math.Exp(-avgSize/float64(rate)))
    
    	return int64(float64(count) * scale), int64(float64(size) * scale)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. cmd/metrics-v3-logger-webhook.go

    	for _, t := range tgts {
    		labels := []string{nameL, t.String(), endpointL, t.Endpoint()}
    		m.Set(webhookFailedMessages, float64(t.Stats().FailedMessages), labels...)
    		m.Set(webhookQueueLength, float64(t.Stats().QueueLength), labels...)
    		m.Set(webhookTotalMessages, float64(t.Stats().TotalMessages), labels...)
    	}
    
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 14 07:27:33 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/cmd/gotraceeventstats/main.go

    		name := ""
    		if int(stat.typ) >= len(specs) {
    			name = fmt.Sprintf("<unknown (%d)>", stat.typ)
    		} else {
    			name = specs[stat.typ].Name
    		}
    		bytesPct := float64(stat.bytes) / float64(cr.bytesRead) * 100
    		countPct := float64(stat.count) / float64(eventsRead) * 100
    		fmt.Fprintf(w, "%s\t%d\t%.2f%%\t%d\t%.2f%%\n", name, stat.bytes, bytesPct, stat.count, countPct)
    	}
    	w.Flush()
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/testing/newcover.go

    	snapshotcov func() float64
    }
    
    // registerCover2 is invoked during "go test -cover" runs.
    // It is used to record a 'tear down' function
    // (to be called when the test is complete) and the coverage mode.
    func registerCover2(mode string, tearDown func(coverprofile string, gocoverdir string) (string, error), snapcov func() float64) {
    	if mode == "" {
    		return
    	}
    	cover2.mode = mode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/sync/pool_test.go

    	slices.Sort(pauses)
    	var total uint64
    	for _, ns := range pauses {
    		total += ns
    	}
    	// ns/op for this benchmark is average STW time.
    	b.ReportMetric(float64(total)/float64(b.N), "ns/op")
    	b.ReportMetric(float64(pauses[len(pauses)*95/100]), "p95-ns/STW")
    	b.ReportMetric(float64(pauses[len(pauses)*50/100]), "p50-ns/STW")
    }
    
    func BenchmarkPoolExpensiveNew(b *testing.B) {
    	// Populate a pool with items that are expensive to construct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    	if err != nil {
    		return 0, fmt.Errorf("invalid value for IntOrString: %v", err)
    	}
    	if isPercent {
    		if roundUp {
    			value = int(math.Ceil(float64(value) * (float64(total)) / 100))
    		} else {
    			value = int(math.Floor(float64(value) * (float64(total)) / 100))
    		}
    	}
    	return value, nil
    }
    
    // GetValueFromIntOrPercent was deprecated in favor of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. src/go/types/example_test.go

    		`package main
    import "fmt"
    func main() {
    	freezing := FToC(-18)
    	fmt.Println(freezing, Boiling) }
    `,
    		`package main
    import "fmt"
    type Celsius float64
    func (c Celsius) String() string { return fmt.Sprintf("%g°C", c) }
    func FToC(f float64) Celsius { return Celsius(f - 32 / 9 * 5) }
    const Boiling Celsius = 100
    func Unused() { {}; {{ var x int; _ = x }} } // make sure empty block scopes get printed
    `,
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top