Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glean-core/ios/Glean/Glean.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public final class Glean: @unchecked Sendable {
appBuild: AppInfo.buildId,
appDisplayVersion: AppInfo.displayVersion,
appBuildDate: Datetime(from: buildInfo.buildDate),
architecture: Sysctl.machine,
architecture: Sysctl.architecture,
osVersion: UIDevice.current.systemVersion,
channel: configuration.channel,
locale: getLocaleTag(),
Expand Down
6 changes: 3 additions & 3 deletions glean-core/ios/Glean/Utils/Sysctl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ struct Sysctl {
/// Always the same on Apple hardware
public static var manufacturer: String = "Apple"

/// e.g. "N71mAP"
public static var machine: String {
return (try? Sysctl.string(for: [CTL_HW, HW_MODEL])) ?? "Unknown"
/// e.g. "arm64"
public static var architecture: String {
return (try? Sysctl.string(for: [CTL_HW, HW_MACHINE_ARCH])) ?? "Unknown"
}

/// e.g. "iPhone8,1"
Expand Down