Introduction
Introduction Statistics Contact Development Disclaimer Help
tMonotonic clock cannot jump backwards. - st - [fork] customized build of st, t…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit c27c731b9f77c1b1c99f3bde737be53996809fcb
parent 6ee56d65906362f3f6ade570da0ce9c28788eaf5
Author: [email protected] <[email protected]>
Date: Sat, 18 Apr 2015 18:46:17 +0200
Monotonic clock cannot jump backwards.
The check was introduced back when st used gettimeofday.
The condition is also modified to increment the accuaracy of the
calculation.
Diffstat:
M st.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -4003,8 +4003,7 @@ run(void) {
dodraw = 1;
}
deltatime = TIMEDIFF(now, last);
- if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
- || deltatime < 0) {
+ if(deltatime > 1000 / (xev ? xfps : actionfps)) {
dodraw = 1;
last = now;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.