summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcessList.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-31 20:55:36 +0100
committerBenny Baumann <BenBE@geshi.org>2020-11-02 22:15:01 +0100
commitadf797c295db2e0b24cc49efc7af70dafc3f10c2 (patch)
tree22bbd800bd2ea7c0732efb19b9869ef3e6739969 /darwin/DarwinProcessList.c
parent374edb9ed5e9d5fa24cfe358258d82f69d9d430d (diff)
Spacing after keywords (for)
Diffstat (limited to 'darwin/DarwinProcessList.c')
-rw-r--r--darwin/DarwinProcessList.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/darwin/DarwinProcessList.c b/darwin/DarwinProcessList.c
index 59ec9d31..3f72a3a7 100644
--- a/darwin/DarwinProcessList.c
+++ b/darwin/DarwinProcessList.c
@@ -164,8 +164,8 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
/* Get the time difference */
dpl->global_diff = 0;
- for(int i = 0; i < dpl->super.cpuCount; ++i) {
- for(size_t j = 0; j < CPU_STATE_MAX; ++j) {
+ for (int i = 0; i < dpl->super.cpuCount; ++i) {
+ for (size_t j = 0; j < CPU_STATE_MAX; ++j) {
dpl->global_diff += dpl->curr_load[i].cpu_ticks[j] - dpl->prev_load[i].cpu_ticks[j];
}
}
@@ -185,7 +185,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
*/
ps = ProcessList_getKInfoProcs(&count);
- for(size_t i = 0; i < count; ++i) {
+ for (size_t i = 0; i < count; ++i) {
proc = (DarwinProcess *)ProcessList_getProcess(super, ps[i].kp_proc.p_pid, &preExisting, DarwinProcess_new);
DarwinProcess_setFromKInfoProc(&proc->super, &ps[i], preExisting);

© 2014-2024 Faster IT GmbH | imprint | privacy policy