diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-11-02 21:37:25 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-11-02 22:15:01 +0100 |
commit | e7b95feee4f375738cb339a58337fdab83f6abbf (patch) | |
tree | cca5e7c9cf75861b4bb8191a9a2742c15875d530 /linux/LinuxProcessList.c | |
parent | 0e922d4085f0285cf353323fd5a96edae604d5da (diff) |
Remove unnecessary braces
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index d3416de5..4227dd38 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -808,7 +808,7 @@ static int handleNetlinkMsg(struct nl_msg* nlmsg, void* linuxProcess) { memcpy(&stats, nla_data(nla_next(nla_data(nlattr), &rem)), sizeof(stats)); assert(lp->super.pid == (pid_t)stats.ac_pid); - timeDelta = (stats.ac_etime * 1000 - lp->delay_read_time); + timeDelta = stats.ac_etime * 1000 - lp->delay_read_time; #define BOUNDS(x) (isnan(x) ? 0.0 : ((x) > 100) ? 100.0 : (x)) #define DELTAPERC(x,y) BOUNDS((float) ((x) - (y)) / timeDelta * 100) lp->cpu_delay_percent = DELTAPERC(stats.cpu_delay_total, lp->cpu_delay_total); |