FreeBSD: drop unused ProcessList fields

This commit is contained in:
Christian Göttsche 2021-01-27 15:11:52 +01:00 committed by BenBE
parent fa499fc155
commit 56c4055fd1
2 changed files with 2 additions and 5 deletions

View File

@ -250,8 +250,8 @@ static inline void FreeBSDProcessList_scanCPUTime(ProcessList* pl) {
cpuData->systemPercent = cp_time_p[CP_SYS];
cpuData->irqPercent = cp_time_p[CP_INTR];
cpuData->systemAllPercent = cp_time_p[CP_SYS] + cp_time_p[CP_INTR];
// this one is not really used, but we store it anyway
cpuData->idlePercent = cp_time_p[CP_IDLE];
// this one is not really used
//cpuData->idlePercent = cp_time_p[CP_IDLE];
}
}

View File

@ -25,7 +25,6 @@ typedef struct CPUData_ {
double nicePercent;
double systemPercent;
double irqPercent;
double idlePercent;
double systemAllPercent;
} CPUData;
@ -35,8 +34,6 @@ typedef struct FreeBSDProcessList_ {
unsigned long long int memWire;
unsigned long long int memActive;
unsigned long long int memInactive;
unsigned long long int memFree;
ZfsArcStats zfs;