diff options
author | fraggerfox <santhosh.raju@gmail.com> | 2021-04-09 07:48:52 +0530 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-06-26 12:18:37 +0200 |
commit | db986236843ac87c89ea74cd13ab4aa8d90cf935 (patch) | |
tree | d02227c34aeabec54a8717423cce81a1983a94f8 /netbsd/NetBSDProcessList.c | |
parent | 4b49de44a8659674c6e92ba70e0c1930b2b9315b (diff) |
Sync changes from master and fix minor warnings
Diffstat (limited to 'netbsd/NetBSDProcessList.c')
-rw-r--r-- | netbsd/NetBSDProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netbsd/NetBSDProcessList.c b/netbsd/NetBSDProcessList.c index 5b141183..5208c7b4 100644 --- a/netbsd/NetBSDProcessList.c +++ b/netbsd/NetBSDProcessList.c @@ -62,7 +62,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui CRT_fatalError("pagesize sysconf call failed"); pageSizeKB = pageSize / ONE_K; - for (int i = 0; i <= pl->cpuCount; i++) { + for (unsigned int i = 0; i <= pl->cpuCount; i++) { CPUData* d = opl->cpus + i; d->totalTime = 1; d->totalPeriod = 1; @@ -361,7 +361,7 @@ static void NetBSDProcessList_scanCPUTime(NetBSDProcessList* this) { u_int64_t kernelTimes[CPUSTATES] = {0}; u_int64_t avg[CPUSTATES] = {0}; - for (int i = 0; i < this->super.cpuCount; i++) { + for (unsigned int i = 0; i < this->super.cpuCount; i++) { getKernelCPUTimes(i, kernelTimes); CPUData* cpu = this->cpus + i + 1; kernelCPUTimesToHtop(kernelTimes, cpu); |