summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-05-05 23:18:14 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-05-05 23:18:14 -0300
commitb7de9bd0f56c283645a19624c04c42fbc67f109b (patch)
treeab0ab8e2c7147729cf8ee6e8b30ad45bacd2f1a7 /htop.c
parentff6cddfd164b88627e704b9deae9a5b935d68e19 (diff)
Don't stop refreshing if clock was adjusted.
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/htop.c b/htop.c
index fe7390cf..ab350a85 100644
--- a/htop.c
+++ b/htop.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy