use nprocs() function instead of /proc/cpuinfo
authorPeter Michael Green <plugwash@debian.org>
Tue, 7 May 2013 23:03:27 +0000 (23:03 +0000)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 15 Sep 2014 22:36:47 +0000 (01:36 +0300)
commitea07a859cfb2da8368ea8aa398f98f28a582909a
tree1a9e66d88dfd3448699e972073e90a25263ac7b8
parent05708dd1420f920352c1a4a98495654645aa3d9d
use nprocs() function instead of /proc/cpuinfo

/proc/cpuinfo varies a lot between architectures leading to the code
identifying zero CPUs on some systems and hence ending up reporting a cpu
usage of -1

Author: Peter Michael Green <plugwash@debian.org>
Bug-Raspbian: https://bugs.launchpad.net/raspbian/+bug/1128012
Bug-Debian: http://bugs.debian.org/705506
src/xfce-taskmanager-linux.c