Skip to content

Commit 76725ce

Browse files
authored
Merge pull request #158 from intel/l3gig
recognize L3 cache size in GiB
2 parents b2d2f01 + 95e74ec commit 76725ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/report/table_helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ func getL3LscpuMB(outputs map[string]script.ScriptOutput) (val float64, err erro
463463
return
464464
}
465465
units := match[2]
466+
if strings.ToLower(units[:1]) == "g" {
467+
val = l3SizeNoUnit * 1024 / float64(instances)
468+
return
469+
}
466470
if strings.ToLower(units[:1]) == "m" {
467471
val = l3SizeNoUnit / float64(instances)
468472
return

0 commit comments

Comments
 (0)