mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Files moved and added for supporting separate platforms.
This commit is contained in:
32
unsupported/UnsupportedProcessList.c
Normal file
32
unsupported/UnsupportedProcessList.c
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
htop - UnsupportedProcessList.c
|
||||
(C) 2014 Hisham H. Muhammad
|
||||
Released under the GNU GPL, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "ProcessList.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/*{
|
||||
|
||||
}*/
|
||||
|
||||
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
|
||||
ProcessList* this = calloc(1, sizeof(ProcessList));
|
||||
ProcessList_init(this, usersTable, pidWhiteList);
|
||||
|
||||
// Update CPU count:
|
||||
this->cpuCount = 1;
|
||||
this->cpus = calloc(1, sizeof(CPUData));
|
||||
this->cpus[0].totalTime = 1;
|
||||
this->cpus[0].totalPeriod = 1;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
void ProcessList_scan(ProcessList* this) {
|
||||
(void) this;
|
||||
// stub!
|
||||
}
|
Reference in New Issue
Block a user