Enable setting of vendor and related information for all Power versions

This commit is contained in:
Kishen V 2023-07-24 18:21:59 +05:30
parent c43eaea6a7
commit 63e0b63ab8
1 changed files with 1 additions and 2 deletions

View File

@ -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"