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
c3d682b0
Commit
c3d682b0
authored
Feb 17, 2009
by
Hisham Muhammad
Browse files
fix bug #2171752
parent
dc38fc2d
Changes
1
Show whitespace changes
Inline
Side-by-side
htop.c
View file @
c3d682b0
...
@@ -282,6 +282,7 @@ int main(int argc, char** argv) {
...
@@ -282,6 +282,7 @@ int main(int argc, char** argv) {
int
refreshTimeout
=
0
;
int
refreshTimeout
=
0
;
int
resetRefreshTimeout
=
5
;
int
resetRefreshTimeout
=
5
;
bool
doRefresh
=
true
;
bool
doRefresh
=
true
;
bool
doRecalculate
=
false
;
Settings
*
settings
;
Settings
*
settings
;
Panel
*
killPanel
=
NULL
;
Panel
*
killPanel
=
NULL
;
...
@@ -353,8 +354,10 @@ int main(int argc, char** argv) {
...
@@ -353,8 +354,10 @@ int main(int argc, char** argv) {
int
currScrollV
=
panel
->
scrollV
;
int
currScrollV
=
panel
->
scrollV
;
if
(
follow
)
if
(
follow
)
currPid
=
ProcessList_get
(
pl
,
currPos
)
->
pid
;
currPid
=
ProcessList_get
(
pl
,
currPos
)
->
pid
;
if
(
recalculate
)
if
(
recalculate
||
doRecalculate
)
{
ProcessList_scan
(
pl
);
ProcessList_scan
(
pl
);
doRecalculate
=
false
;
}
if
(
refreshTimeout
==
0
)
{
if
(
refreshTimeout
==
0
)
{
ProcessList_sort
(
pl
);
ProcessList_sort
(
pl
);
refreshTimeout
=
1
;
refreshTimeout
=
1
;
...
@@ -728,12 +731,14 @@ int main(int argc, char** argv) {
...
@@ -728,12 +731,14 @@ int main(int argc, char** argv) {
settings
->
changed
=
true
;
settings
->
changed
=
true
;
break
;
break
;
case
'H'
:
case
'H'
:
doRecalculate
=
true
;
refreshTimeout
=
0
;
refreshTimeout
=
0
;
pl
->
hideUserlandThreads
=
!
pl
->
hideUserlandThreads
;
pl
->
hideUserlandThreads
=
!
pl
->
hideUserlandThreads
;
pl
->
hideThreads
=
pl
->
hideUserlandThreads
;
pl
->
hideThreads
=
pl
->
hideUserlandThreads
;
settings
->
changed
=
true
;
settings
->
changed
=
true
;
break
;
break
;
case
'K'
:
case
'K'
:
doRecalculate
=
true
;
refreshTimeout
=
0
;
refreshTimeout
=
0
;
pl
->
hideKernelThreads
=
!
pl
->
hideKernelThreads
;
pl
->
hideKernelThreads
=
!
pl
->
hideKernelThreads
;
settings
->
changed
=
true
;
settings
->
changed
=
true
;
...
...
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