Skip to content

Commit a0888b3

Browse files
committed
revert as original was correct
Signed-off-by: Harper, Jason M <[email protected]>
1 parent fdeb29b commit a0888b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/metrics/loader_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func replaceConstants(metrics []MetricDefinition, metadata Metadata) ([]MetricDe
166166
return nil, fmt.Errorf("unknown granularity: %s", flagGranularity)
167167
}
168168
coresPerSocket := fmt.Sprintf("%f", float64(metadata.CoresPerSocket))
169-
chasPerSocket := fmt.Sprintf("%f", float64(len(metadata.UncoreDeviceIDs["cha"]))/float64(metadata.SocketCount))
169+
chasPerSocket := fmt.Sprintf("%f", float64(len(metadata.UncoreDeviceIDs["cha"])))
170170
socketCount := fmt.Sprintf("%f", float64(metadata.SocketCount))
171171
hyperThreadingOn := fmt.Sprintf("%t", metadata.ThreadsPerCore > 1)
172172
threadsPerCore := fmt.Sprintf("%f", float64(metadata.ThreadsPerCore))

0 commit comments

Comments
 (0)