aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoname@inventati.org <noname@inventati.org>2015-04-18 18:45:48 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-20 09:20:35 +0200
commit6dc2b546eca11b198c64c9047106970a8d1f85e8 (patch)
treecfbe4e74120adaadf158471396eb9bf29a94736f
parentc27c731b9f77c1b1c99f3bde737be53996809fcb (diff)
downloadst-6dc2b546eca11b198c64c9047106970a8d1f85e8.tar.gz
Increment accuaracy in drawtime calculation
This way is a bit more accurate.
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index c7589f4..dcb80ca 100644
--- a/st.c
+++ b/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;