feat: added cores number to the GPU information (Apple Silicon)

This commit is contained in:
Serhiy Mytrovtsiy
2022-01-12 17:06:06 +01:00
parent f17c0c8987
commit 36a596422e
2 changed files with 15 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ public struct gpu_s {
public var name: String? = nil
public var vendor: String? = nil
public var vram: String? = nil
public var cores: Int? = nil
}
public struct disk_s {
@@ -227,6 +228,7 @@ public class SystemKit {
gpu.name = obj["sppci_model"] as? String
gpu.vendor = obj["spdisplays_vendor"] as? String
gpu.cores = Int(obj["sppci_cores"] as? String ?? "")
if let vram = obj["spdisplays_vram_shared"] as? String {
gpu.vram = vram