Added support for multiple processor groups. Changed the ThreadAffinity class to use a new struct GroupAffinity. Changed operating system checks to make use of a new flag OperatingSystem.IsUnix.

This commit is contained in:
Michael Möller
2020-05-04 23:11:33 +02:00
parent 87c6f02d33
commit b04c151c77
25 changed files with 336 additions and 167 deletions

View File

@@ -42,8 +42,7 @@ namespace OpenHardwareMonitor.Hardware {
}
public SMBIOS() {
int p = (int)Environment.OSVersion.Platform;
if ((p == 4) || (p == 128)) {
if (OperatingSystem.IsUnix) {
this.raw = null;
this.table = null;