mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-28 13:48:49 +08:00
Merge pull request #1495 from kishen-v/powerISACheck
Enable setting of vendor and related information for all Power versions
This commit is contained in:
commit
31d6b3089d
@ -259,8 +259,7 @@ func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
|
|||||||
}
|
}
|
||||||
case "Model Name", "model name", "cpu":
|
case "Model Name", "model name", "cpu":
|
||||||
c.ModelName = value
|
c.ModelName = value
|
||||||
if strings.Contains(value, "POWER8") ||
|
if strings.Contains(value, "POWER") {
|
||||||
strings.Contains(value, "POWER7") {
|
|
||||||
c.Model = strings.Split(value, " ")[0]
|
c.Model = strings.Split(value, " ")[0]
|
||||||
c.Family = "POWER"
|
c.Family = "POWER"
|
||||||
c.VendorID = "IBM"
|
c.VendorID = "IBM"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user