diff options
Diffstat (limited to 'lib/status_handler.cpp')
-rw-r--r-- | lib/status_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/status_handler.cpp b/lib/status_handler.cpp index 3188ba0d..c24c6f50 100644 --- a/lib/status_handler.cpp +++ b/lib/status_handler.cpp @@ -29,7 +29,7 @@ TickVal lastExec = getTicks(); bool zen::updateUiIsAllowed() { const TickVal now = getTicks(); //0 on error - if (now - lastExec >= TICKS_UPDATE_INTERVAL) //perform ui updates not more often than necessary + if (dist(lastExec, now) >= TICKS_UPDATE_INTERVAL) //perform ui updates not more often than necessary { lastExec = now; return true; |