Skip to content

Commit

Permalink
Enable setting of vendor and related information for all Power versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kishen-v committed Jul 25, 2023
1 parent c43eaea commit 63e0b63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpu/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
}
case "Model Name", "model name", "cpu":
c.ModelName = value
if strings.Contains(value, "POWER8") ||
strings.Contains(value, "POWER7") {
if strings.Contains(value, "POWER") {
c.Model = strings.Split(value, " ")[0]
c.Family = "POWER"
c.VendorID = "IBM"
Expand Down

0 comments on commit 63e0b63

Please sign in to comment.