diff options
author | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
---|---|---|
committer | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
commit | 5b21c81d6870e72629d3b12756e14a60bdc5261b (patch) | |
tree | d617edb6a939a19db9bb57216c380fb8618ebea9 /src/process_iterator_apple.c | |
parent | d252394bc86670e39f8a9c5c52875b13645764af (diff) | |
download | cpulimit-master.tar.gz |
Diffstat (limited to 'src/process_iterator_apple.c')
-rw-r--r-- | src/process_iterator_apple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_iterator_apple.c b/src/process_iterator_apple.c index b878ed8..076630d 100644 --- a/src/process_iterator_apple.c +++ b/src/process_iterator_apple.c @@ -77,7 +77,7 @@ static int pti2proc(struct proc_taskallinfo *ti, struct process *process) { process->pid = ti->pbsd.pbi_pid; process->ppid = ti->pbsd.pbi_ppid; process->starttime = ti->pbsd.pbi_start_tvsec; - process->cputime = (ti->ptinfo.pti_total_user + ti->ptinfo.pti_total_system) / 1000000; + process->cputime = ( (ti->ptinfo.pti_total_user + ti->ptinfo.pti_total_system) ) / 1000000; bytes = strlen(ti->pbsd.pbi_comm); memcpy(process->command, ti->pbsd.pbi_comm, (bytes < PATH_MAX ? bytes : PATH_MAX) + 1); return 0; |