tIncrement accuaracy in drawtime calculation - st - [fork] customized build of … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 6dc2b546eca11b198c64c9047106970a8d1f85e8 | |
parent c27c731b9f77c1b1c99f3bde737be53996809fcb | |
Author: [email protected] <[email protected]> | |
Date: Sat, 18 Apr 2015 18:45:48 +0200 | |
Increment accuaracy in drawtime calculation | |
This way is a bit more accurate. | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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; |