Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
0627a5f0
Commit
0627a5f0
authored
9 years ago
by
Hisham
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://github.com/hishamhm/htop
parents
e0c364b9
d10f4f61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
autogen.sh
+1
-13
autogen.sh
freebsd/FreeBSDProcessList.c
+2
-0
freebsd/FreeBSDProcessList.c
with
3 additions
and
13 deletions
+3
-13
autogen.sh
View file @
0627a5f0
#!/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
This diff is collapsed.
Click to expand it.
freebsd/FreeBSDProcessList.c
View file @
0627a5f0
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help