refactor(project): 清理闲置展示链路与重复采样状态
This commit is contained in:
@@ -4,7 +4,6 @@ import SwiftUI
|
||||
struct CPUCoreGrid: View {
|
||||
let values: [Double]
|
||||
let kinds: [Int: CPUCoreTopology.Kind]
|
||||
let interval: TimeInterval
|
||||
|
||||
private func color(_ kind: CPUCoreTopology.Kind?) -> Color {
|
||||
switch kind {
|
||||
@@ -141,7 +140,7 @@ private struct CPUCoreGridPreviews: View {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text("\(count) cores").font(.caption)
|
||||
CPUCoreGrid(values: (0..<count).map { Double(($0 * 17) % 90 + 5) / 100 },
|
||||
kinds: Dictionary(uniqueKeysWithValues: (0..<count).map { ($0, $0 < count / 3 ? .efficiency : .performance) }), interval: 2)
|
||||
kinds: Dictionary(uniqueKeysWithValues: (0..<count).map { ($0, $0 < count / 3 ? .efficiency : .performance) }))
|
||||
}
|
||||
}
|
||||
}.padding().frame(width: width)
|
||||
|
||||
Reference in New Issue
Block a user