Skip to content
GitLab
Menu
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
bb0333e4
Commit
bb0333e4
authored
Feb 11, 2016
by
Greg V
Browse files
fix process memory on FreeBSD
parent
b6f927bf
Changes
1
Show whitespace changes
Inline
Side-by-side
freebsd/FreeBSDProcessList.c
View file @
bb0333e4
...
@@ -477,8 +477,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
...
@@ -477,8 +477,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
}
}
// from FreeBSD source /src/usr.bin/top/machine.c
// from FreeBSD source /src/usr.bin/top/machine.c
proc
->
m_size
=
kproc
->
ki_size
/
1024
;
proc
->
m_size
=
kproc
->
ki_size
/
1024
/
pageSizeKb
;
proc
->
m_resident
=
kproc
->
ki_rssize
*
pageSizeKb
;
proc
->
m_resident
=
kproc
->
ki_rssize
;
proc
->
nlwp
=
kproc
->
ki_numthreads
;
proc
->
nlwp
=
kproc
->
ki_numthreads
;
proc
->
time
=
(
kproc
->
ki_runtime
+
5000
)
/
10000
;
proc
->
time
=
(
kproc
->
ki_runtime
+
5000
)
/
10000
;
...
...
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