diff options
| author | noname@inventati.org <noname@inventati.org> | 2015-04-18 18:45:48 +0200 | 
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-20 09:20:35 +0200 | 
| commit | 6dc2b546eca11b198c64c9047106970a8d1f85e8 (patch) | |
| tree | cfbe4e74120adaadf158471396eb9bf29a94736f /st.c | |
| parent | c27c731b9f77c1b1c99f3bde737be53996809fcb (diff) | |
Increment accuaracy in drawtime calculation
This way is a bit more accurate.
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -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;  | 
