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
4f1bd232
Commit
4f1bd232
authored
9 years ago
by
Hisham
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://github.com/hishamhm/htop
parents
84a69b1e
03af73bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
freebsd/FreeBSDProcessList.c
+3
-3
freebsd/FreeBSDProcessList.c
with
3 additions
and
3 deletions
+3
-3
freebsd/FreeBSDProcessList.c
View file @
4f1bd232
...
...
@@ -212,9 +212,6 @@ static inline void FreeBSDProcessList_scanCPUTime(ProcessList* pl) {
unsigned
long
*
cp_time_n
;
// old clicks state
unsigned
long
*
cp_time_o
;
// current clicks state
unsigned
long
long
total_o
=
0
;
unsigned
long
long
total_n
=
0
;
unsigned
long
long
total_d
=
0
;
unsigned
long
cp_time_d
[
CPUSTATES
];
double
cp_time_p
[
CPUSTATES
];
...
...
@@ -251,6 +248,9 @@ static inline void FreeBSDProcessList_scanCPUTime(ProcessList* pl) {
}
// diff old vs new
unsigned
long
long
total_o
=
0
;
unsigned
long
long
total_n
=
0
;
unsigned
long
long
total_d
=
0
;
for
(
int
s
=
0
;
s
<
CPUSTATES
;
s
++
)
{
cp_time_d
[
s
]
=
cp_time_n
[
s
]
-
cp_time_o
[
s
];
total_o
+=
cp_time_o
[
s
];
...
...
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