diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:34:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:38:06 -0300 |
commit | bae27054e6f8ed3d27f3c39f3aa467ec3aa6c4af (patch) | |
tree | 6dd3d33e7711cb427c74b9a00e9752568beb46d9 /linux | |
parent | 8d01ae2054866f7a18ad69b7c3725be23f98d2a6 (diff) |
Linux: fix CPU count
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 3509e9e0..62bc0967 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -245,7 +245,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, ui if (file == NULL) { CRT_fatalError("Cannot open " PROCSTATFILE); } - int cpus = -1; + int cpus = 0; do { char buffer[PROC_LINE_LENGTH + 1]; if (fgets(buffer, PROC_LINE_LENGTH + 1, file) == NULL) { |