Files
Termind/Frameworks/TermindDomain/Metrics/MetricsCPUUsage.swift
T
Kaede Akino 82d871c4fe refactor: separate feature policies and UI workflows
Move connection policy out of ProAccess, keep terminal uploads with their
session, and share question interaction and highlight editing operations.
Consolidate CPU usage and settings snapshot handling, and remove obsolete
terminal selection, theme helpers, and hard-coded latest-schema assertions.

Fix draining connection-pool recovery and stale pane upload bindings. Keep
screenshot matrices opt-in and retain behavioral migration coverage.

Validation: 2468 macOS tests passed serially, 31 iOS tests passed, and both
SSH forwarding regressions passed against the local OpenSSH fixture.
Both app builds, Swift formatting, AppStrings, and Chinese localization
checks passed. Parallel test runs still exhibit intermittent timeouts.
2026-10-02 16:40:27 +08:00

24 lines
707 B
Swift

import Foundation
/// Counter-derived CPU percentages, shared by the aggregate and each logical core.
public nonisolated struct MetricsCPUUsage: Equatable, Sendable {
public var utilization: Double?
public var user: Double?
public var system: Double?
public var wait: Double?
public var steal: Double?
public var idle: Double?
public init(
utilization: Double? = nil, user: Double? = nil, system: Double? = nil,
wait: Double? = nil, steal: Double? = nil, idle: Double? = nil
) {
self.utilization = utilization
self.user = user
self.system = system
self.wait = wait
self.steal = steal
self.idle = idle
}
}