chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder]
/
cgi
/
actions.c
diff --git
a/cgi/actions.c
b/cgi/actions.c
index d752660a141fe6d0d1406cf818028d39279851ea..ab52c2d9b1284b55e2a7f5468409ecc0e83a1581 100644
(file)
--- a/
cgi/actions.c
+++ b/
cgi/actions.c
@@
-75,7
+75,7
@@
static void act_playing(void) {
&& length
&& dcgi_playing->sofar >= 0) {
/* Try to put the next refresh at the start of the next track. */
- time(&now);
+
x
time(&now);
fin = now + length - dcgi_playing->sofar + config->gap;
if(now + refresh > fin)
refresh = fin - now;