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
b7de9bd0
"plugins/vscode:/vscode.git/clone" did not exist on "9d76784b3ed85115e1830d48d91b3a08236a6538"
Commit
b7de9bd0
authored
May 05, 2014
by
Hisham Muhammad
Browse files
Don't stop refreshing if clock was adjusted.
parent
ff6cddfd
Changes
1
Show whitespace changes
Inline
Side-by-side
htop.c
View file @
b7de9bd0
...
...
@@ -529,6 +529,7 @@ int main(int argc, char** argv) {
gettimeofday
(
&
tv
,
NULL
);
double
newTime
=
((
double
)
tv
.
tv_sec
*
10
)
+
((
double
)
tv
.
tv_usec
/
100000
);
bool
recalculate
=
(
newTime
-
oldTime
>
settings
->
delay
);
if
(
newTime
<
oldTime
)
recalculate
=
true
;
// clock was adjusted?
int
following
=
follow
?
selectedPid
(
panel
)
:
-
1
;
if
(
recalculate
)
{
Header_draw
(
header
);
...
...
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