Compare commits
10
Commits
68e6df2938
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30976e9be4 | ||
|
|
547aedd3b6 | ||
|
|
5c26579bd8 | ||
|
|
63d6bd6209 | ||
|
|
c6002955fd | ||
|
|
6f76d6cc90 | ||
|
|
a6c7a3bee0 | ||
|
|
17b9147179 | ||
|
|
c461a9886e | ||
|
|
9f2d0c58d8 |
@@ -169,7 +169,7 @@ public struct ContentView: View {
|
||||
}
|
||||
.padding(24)
|
||||
}
|
||||
.navigationTitle("MacMonitor — \(selectedTab)")
|
||||
.navigationTitle("MacMonitor — \(selectedTab ?? "Dashboard")")
|
||||
}
|
||||
|
||||
// MARK: - Dashboard Composite View
|
||||
@@ -1006,8 +1006,6 @@ public struct ContentView: View {
|
||||
HStack {
|
||||
Text("Target Architecture:").foregroundStyle(.secondary)
|
||||
Text("Intel x86_64").bold()
|
||||
Text("Deployment Target:").foregroundStyle(.secondary)
|
||||
Text("macOS 14.0 (Sonoma)").bold()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1250,8 +1248,9 @@ struct ProcessDetailSheet: View {
|
||||
if selectedDetailTab == "Threads" {
|
||||
List(threads.indices, id: \.self) { idx in
|
||||
let t = threads[idx]
|
||||
let threadID = "\(t["threadID"] ?? idx)"
|
||||
HStack {
|
||||
Text("Thread \(t["threadID"] ?? idx)").bold()
|
||||
Text("Thread \(threadID)").bold()
|
||||
Spacer()
|
||||
Text("CPU: \(String(format: "%.1f%%", (t["cpuPercent"] as? Double) ?? 0.0))").monospacedDigit()
|
||||
Text(t["state"] as? String ?? "").foregroundStyle(.secondary)
|
||||
@@ -1264,10 +1263,15 @@ struct ProcessDetailSheet: View {
|
||||
} else {
|
||||
List(sockets.indices, id: \.self) { idx in
|
||||
let s = sockets[idx]
|
||||
let proto = s["protocol"] as? String ?? "TCP"
|
||||
let localAddr = (s["localAddress"] as? String) ?? ""
|
||||
let localPort = (s["localPort"] as? Int) ?? 0
|
||||
let remoteAddr = (s["remoteAddress"] as? String) ?? ""
|
||||
let remotePort = (s["remotePort"] as? Int) ?? 0
|
||||
HStack {
|
||||
Text(s["protocol"] as? String ?? "TCP").bold()
|
||||
Text(proto).bold()
|
||||
Spacer()
|
||||
Text("\(s["localAddress"] ?? ""):\(s["localPort"] ?? 0) → \(s["remoteAddress"] ?? ""):\(s["remotePort"] ?? 0)")
|
||||
Text("\(localAddr):\(localPort) → \(remoteAddr):\(remotePort)")
|
||||
.mmMonospaced()
|
||||
Text(s["tcpState"] as? String ?? "").foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user