st
simple terminal
git clone https://9o.is/git/st.git
commit 7879d6d554f101cd3c3ffec696acbbcf3b7d1d37 parent ae407922ca3e9a9ef2fd6cb500b83d87e5f26e28 Author: noname@inventati.org <noname@inventati.org> 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 @@ -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;