chiark / gitweb /
Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder] / clients / playrtp.c
index c07c153e1938b71b5d0b409b4cac40844d8ed421..7eed9eb3529f75f58b4ca76f34ee0c1012bee766 100644 (file)
@@ -858,7 +858,7 @@ int main(int argc, char **argv) {
          || (nsamples > 0
              && contains(pheap_first(&packets), next_timestamp))) {
       if(monitor) {
-        time_t now = time(0);
+        time_t now = xtime(0);
 
         if(now >= lastlog + 60) {
           int offset = nsamples - minbuffer;