From 6a2b74b0dc7f080ec0a112becf16856656795770 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:44:23 +0200 Subject: [PATCH] Use CamelCase --- internal/metricAggregator/metricAggregatorFunctions.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/metricAggregator/metricAggregatorFunctions.go b/internal/metricAggregator/metricAggregatorFunctions.go index 83eeb6c..0f1468b 100644 --- a/internal/metricAggregator/metricAggregatorFunctions.go +++ b/internal/metricAggregator/metricAggregatorFunctions.go @@ -290,7 +290,7 @@ func getCpuListOfCoreFunc(args interface{}) (interface{}, error) { case int: for _, c := range topo.CpuData() { if c.Core == in { - cpulist = append(cpulist, c.Cpuid) + cpulist = append(cpulist, c.CpuID) } } } @@ -304,7 +304,7 @@ func getCpuListOfSocketFunc(args interface{}) (interface{}, error) { case int: for _, c := range topo.CpuData() { if c.Socket == in { - cpulist = append(cpulist, c.Cpuid) + cpulist = append(cpulist, c.CpuID) } } } @@ -317,8 +317,8 @@ func getCpuListOfNumaDomainFunc(args interface{}) (interface{}, error) { switch in := args.(type) { case int: for _, c := range topo.CpuData() { - if c.Numadomain == in { - cpulist = append(cpulist, c.Cpuid) + if c.NumaDomain == in { + cpulist = append(cpulist, c.CpuID) } } } @@ -332,7 +332,7 @@ func getCpuListOfDieFunc(args interface{}) (interface{}, error) { case int: for _, c := range topo.CpuData() { if c.Die == in { - cpulist = append(cpulist, c.Cpuid) + cpulist = append(cpulist, c.CpuID) } } }