This commit is contained in:
Hisham 2016-02-16 14:52:08 -02:00
commit 0627a5f0e9
2 changed files with 3 additions and 13 deletions

View File

@ -1,15 +1,3 @@
#!/bin/sh
glibtoolize=$(which glibtoolize 2> /dev/null)
if [ ${#glibtoolize} -gt 0 ]
then libtoolize=glibtoolize
else libtoolize=libtoolize
fi
mkdir -p m4
aclocal -I m4
autoconf
autoheader
$libtoolize --copy --force
automake --add-missing --copy
autoreconf --install --force

View File

@ -483,6 +483,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
proc->time = (kproc->ki_runtime + 5000) / 10000;
proc->percent_cpu = 100.0 * ((double)kproc->ki_pctcpu / (double)kernelFScale);
proc->percent_mem = 100.0 * (proc->m_resident * PAGE_SIZE_KB) / (double)(this->totalMem);
if (proc->percent_cpu > 0.1) {
// system idle process should own all CPU time left regardless of CPU count
if ( strcmp("idle", kproc->ki_comm) == 0 ) {