chiark / gitweb /
Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder] / cgi / actions.c
index d752660a141fe6d0d1406cf818028d39279851ea..ab52c2d9b1284b55e2a7f5468409ecc0e83a1581 100644 (file)
@@ -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);
+    xtime(&now);
     fin = now + length - dcgi_playing->sofar + config->gap;
     if(now + refresh > fin)
       refresh = fin - now;