Commit b7de9bd0 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Don't stop refreshing if clock was adjusted.

parent ff6cddfd
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment