[hackers] [st] Increment accuaracy in drawtime calculation || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Mon, 20 Apr 2015 09:36:05 +0200 (CEST)

commit 6dc2b546eca11b198c64c9047106970a8d1f85e8
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Sat Apr 18 18:45:48 2015 +0200

    Increment accuaracy in drawtime calculation
    
    This way is a bit more accurate.

diff --git a/st.c b/st.c
index c7589f4..dcb80ca 100644
--- a/st.c
+++ b/st.c
_AT_@ -3992,7 +3992,7 @@ run(void) {
 
                 clock_gettime(CLOCK_MONOTONIC, &now);
                 drawtimeout.tv_sec = 0;
- drawtimeout.tv_nsec = (1000/xfps) * 1E6;
+ drawtimeout.tv_nsec = (1000 * 1E6)/ xfps;
                 tv = &drawtimeout;
 
                 dodraw = 0;
Received on Mon Apr 20 2015 - 09:36:05 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 20 2015 - 09:36:45 CEST