mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Add ProcessList_isCPUonline
This commit is contained in:

committed by
Benny Baumann

parent
41af31be7f
commit
11d2206f40
@ -2081,3 +2081,10 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
|
||||
LinuxProcessList_recurseProcTree(this, rootFd, PROCDIR, NULL, period);
|
||||
}
|
||||
|
||||
bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id) {
|
||||
assert(id < super->existingCPUs);
|
||||
|
||||
const LinuxProcessList* this = (const LinuxProcessList*) super;
|
||||
return this->cpuData[id + 1].online;
|
||||
}
|
||||
|
Reference in New Issue
Block a user