MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / rate

Function rate

tests/loadtest/tools/queue_benchmark.go:630–635  ·  view source on GitHub ↗
(failures, total int)

Source from the content-addressed store, hash-verified

628}
629
630func rate(failures, total int) float64 {
631 if total <= 0 {
632 return 0
633 }
634 return float64(failures) / float64(total)
635}
636
637func counterRate(count int, durationMs float64) float64 {
638 if count <= 0 || durationMs <= 0 {

Callers 1

buildSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected