MCPcopy Create free account
hub / github.com/Loafter/WebTop / subtractAndConvertTicks

Function subtractAndConvertTicks

SystemStatLinux.go:179–181  ·  view source on GitHub ↗
(first uint64, second uint64)

Source from the content-addressed store, hash-verified

177}
178
179func subtractAndConvertTicks(first uint64, second uint64) float64 {
180 return float64(first - second)
181}
182
183func getCPUAverage(first CPUSample, second CPUSample) (avg CPUAverage) {
184 dTot := float64(second.Total - first.Total)

Callers 1

getCPUAverageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected