pinosaur
/
st.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Increment accuaracy in drawtime calculation
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
c7589f4
..
dcb80ca
100644
(file)
--- 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;