diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-05-05 23:18:14 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-05-05 23:18:14 -0300 |
commit | b7de9bd0f56c283645a19624c04c42fbc67f109b (patch) | |
tree | ab0ab8e2c7147729cf8ee6e8b30ad45bacd2f1a7 /htop.c | |
parent | ff6cddfd164b88627e704b9deae9a5b935d68e19 (diff) |
Don't stop refreshing if clock was adjusted.
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |