CPU Usage not updating
I’ve written SwiftUI code that uses Combine to display CPU usage metrics such as User
, System
, Nice
, and Idle
values for each core on the system. The functionality works initially in the sense that when the app launches, the usage data is correctly fetched and displayed.