Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder] / server / choose.c
index 10ed360..733b3ca 100644 (file)
@@ -92,7 +92,7 @@ static unsigned long compute_weight(const char *track,
                                     struct kvp *prefs) {
   const char *s;
   char **track_tags;
-  time_t last, now = time(0);
+  time_t last, now = xtime(0);
 
   /* Reject tracks not in any collection (race between edit config and
    * rescan) */