Skip to content

Commit

Permalink
Merge branch 'deployment-target-macos-13' into deployment-target-maco…
Browse files Browse the repository at this point in the history
…s-14
  • Loading branch information
F1248 committed Dec 25, 2024
2 parents 0522669 + 2b70fe5 commit 4c854f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Genius/Models/SystemInformation/Hardware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension SystemInformation {
"""
return String(Network.transferURL(url)?.between(start: "<configCode>", end: "</configCode>"))
}() ?? name.value)
static let identifier = SystemInformationData<String?>(Sysctl.read("hw.product"))
static let identifier = SystemInformationData<String?>(IORegistry(class: "IOPlatformExpertDevice").read("model"))
static let number = SystemInformationData<String?>(
{
guard
Expand Down Expand Up @@ -105,7 +105,7 @@ extension SystemInformation {
#error("Unsupported architecture")
#endif
}())
static let name = SystemInformationData<String?>(Sysctl.read("machdep.cpu.brand_string"))
static let name = SystemInformationData<String?>(IORegistry(name: "product").read("product-soc-name"))
static let frequency =
SystemInformationData<Frequency?>({ Sysctl.read("hw.cpufrequency").map(Frequency.init) }, applicable: type.value == .intel)
}
Expand Down

0 comments on commit 4c854f8

Please sign in to comment.