Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
3666660e
Commit
3666660e
authored
Aug 13, 2002
by
Michael Smith
Browse files
Timing fixes
svn path=/trunk/icecast/; revision=3808
parent
76ff92cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/thread/thread.c
View file @
3666660e
...
...
@@ -568,7 +568,7 @@ void thread_sleep(unsigned long len)
struct
timeval
tv
;
tv
.
tv_sec
=
len
/
1000000
;
tv
.
tv_usec
=
(
len
%
1000000
)
/
1000
;
tv
.
tv_usec
=
(
len
%
1000000
);
select
(
0
,
NULL
,
NULL
,
NULL
,
&
tv
);
# endif
...
...
src/util.c
View file @
3666660e
...
...
@@ -60,7 +60,7 @@ int util_timed_wait_for_fd(int fd, int timeout)
FD_SET
(
fd
,
&
rfds
);
tv
.
tv_sec
=
timeout
/
1000
;
tv
.
tv_usec
=
(
timeout
-
tv
.
tv_sec
)
*
1000
;
tv
.
tv_usec
=
(
timeout
%
1000
)
*
1000
;
return
select
(
fd
+
1
,
&
rfds
,
NULL
,
NULL
,
&
tv
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment