Skip to content

Commit

Permalink
cli: sysmon: Add CPU Count and Enabled CPU fields in sysmon system
Browse files Browse the repository at this point in the history
…subcommand
  • Loading branch information
sriteja777 authored Feb 13, 2025
1 parent cf8e151 commit 4a9551f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pymobiledevice3/cli/developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,12 @@ def sysmon_system(service_provider: LockdownClient, fields):

if 'SystemCPUUsage' in row:
if system_usage_seen:
system_usage = row['SystemCPUUsage']
system_usage = {
**row['SystemCPUUsage'], **{
'CPUCount': row['CPUCount'],
'EnabledCPUs': row['EnabledCPUs'],
}
}
else: # Ignore the first occurrence because first occurrence always gives a incorrect value - 100 or 0
system_usage_seen = True

Expand Down

0 comments on commit 4a9551f

Please sign in to comment.