Commit abc50fb7 authored by Angela Li's avatar Angela Li

fix gofmt

parent dbacf525
......@@ -207,7 +207,7 @@ func (p *perfCounterNodeStatsClient) convertCPUValue(cpuCores int, cpuValue uint
}
func (p *perfCounterNodeStatsClient) getCPUUsageNanoCores() uint64 {
cpuUsageNanoCores := (p.cpuUsageCoreNanoSecondsCache.latestValue - p.cpuUsageCoreNanoSecondsCache.previousValue) * uint64(time.Second / time.Nanosecond) / uint64(defaultCachePeriod)
cpuUsageNanoCores := (p.cpuUsageCoreNanoSecondsCache.latestValue - p.cpuUsageCoreNanoSecondsCache.previousValue) * uint64(time.Second/time.Nanosecond) / uint64(defaultCachePeriod)
return cpuUsageNanoCores
}
......
......@@ -151,7 +151,7 @@ func TestConvertCPUValue(t *testing.T) {
func TestGetCPUUsageNanoCores(t *testing.T) {
p := perfCounterNodeStatsClient{}
p.cpuUsageCoreNanoSecondsCache = cpuUsageCoreNanoSecondsCache{
latestValue: uint64(5000000000),
latestValue: uint64(5000000000),
previousValue: uint64(2000000000),
}
cpuUsageNanoCores := p.getCPUUsageNanoCores()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment