diff options
author | fraggerfox <santhosh.raju@gmail.com> | 2021-04-25 21:44:32 +0530 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-06-26 12:18:37 +0200 |
commit | 2f5b3ef7337857e04cbb4287517fd51e58ee5beb (patch) | |
tree | a2efa0b4c6602d7a32102766570d8e0a27b66b69 /netbsd | |
parent | e42ae55d691b0e2018d3569ae687cf0cda98c0f8 (diff) |
Refactor saturatingSub() to be part of Macros.h
Diffstat (limited to 'netbsd')
-rw-r--r-- | netbsd/NetBSDProcessList.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/netbsd/NetBSDProcessList.c b/netbsd/NetBSDProcessList.c index 54588b7b..cfc00d53 100644 --- a/netbsd/NetBSDProcessList.c +++ b/netbsd/NetBSDProcessList.c @@ -242,10 +242,6 @@ static void NetBSDProcessList_scanProcs(NetBSDProcessList* this) { } } -static unsigned long long saturatingSub(unsigned long long a, unsigned long long b) { - return a > b ? a - b : 0; -} - static void getKernelCPUTimes(int cpuId, u_int64_t* times) { const int mib[] = { CTL_KERN, KERN_CP_TIME, cpuId }; size_t length = sizeof(*times) * CPUSTATES; |