This way is a bit more accurate.
---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/st.c b/st.c
index 30f296d..1bcdb7f 100644
--- a/st.c
+++ b/st.c
@@ -3956,7 +3956,7 @@ run(void) {
 
                clock_gettime(CLOCK_MONOTONIC, &now);
                drawtimeout.tv_sec = 0;
-               drawtimeout.tv_nsec = (1000/xfps) * 1E6;
+               drawtimeout.tv_nsec = 1000000000 / xfps;
                tv = &drawtimeout;
 
                dodraw = 0;
-- 
1.8.4


Reply via email to