]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/tty.c
Merge branch 'monotonic-time' of https://github.com/themiron/ppp
[ppp.git] / pppd / tty.c
index 7ece6753a0f3ac19733d556f8b4bbe5b5cc3a7c2..4d5b2dbb534a330d32ee0eb316515049b7ea9d05 100644 (file)
@@ -1071,7 +1071,7 @@ charshunt(ifd, ofd, record_file)
     pty_readable = stdin_readable = 1;
 
     ilevel = olevel = 0;
-    gettimeofday(&levelt, NULL);
+    get_time(&levelt);
     if (max_data_rate) {
        max_level = max_data_rate / 10;
        if (max_level < 100)
@@ -1120,7 +1120,7 @@ charshunt(ifd, ofd, record_file)
            int nbt;
            struct timeval now;
 
-           gettimeofday(&now, NULL);
+           get_time(&now);
            dt = (now.tv_sec - levelt.tv_sec
                  + (now.tv_usec - levelt.tv_usec) / 1e6);
            nbt = (int)(dt * max_data_rate);