mirror of https://github.com/xzeldon/htop.git
Merge branch 'master' of https://github.com/hishamhm/htop
This commit is contained in:
commit
0627a5f0e9
14
autogen.sh
14
autogen.sh
|
@ -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
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue