This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
st
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Increment accuaracy in drawtime calculation
This way is a bit more accurate.
master
noname@inventati.org
10 years ago
committed by
Roberto E. Vargas Caballero
parent
c27c731b9f
commit
6dc2b546ec
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
st.c
+ 1
- 1
st.c
View File
@ -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
;
Write
Preview
Loading…
Cancel
Save