[dev] [st] [PATCH 5/5] Monotonic clock cannot jump backwards.

From: noname <noname_AT_inventati.org>
Date: Sat, 18 Apr 2015 16:45:54 +0000

The check was introduced back when st used gettimeofday.
---
 st.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/st.c b/st.c
index cacb7f6..e10815f 100644
--- a/st.c
+++ b/st.c
_AT_@ -3968,8 +3968,7 @@ run(void) {
 			dodraw = true;
 		}
 		deltatime = TIMEDIFF(now, last);
-		if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
-				|| deltatime < 0) {
+		if(deltatime > 1000 / (xev ? xfps : actionfps)) {
 			dodraw = true;
 			last = now;
 		}
-- 
1.8.4
Received on Sat Apr 18 2015 - 18:45:54 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 18 2015 - 18:48:35 CEST