Commit 6dc2b54

noname@inventati.org <noname@inventati.org>
2015-04-18 12:45:48
Increment accuaracy in drawtime calculation
This way is a bit more accurate.
1 parent c27c731
Changed files (1)
st.c
@@ -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;