X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Ftty.c;h=4d5b2dbb534a330d32ee0eb316515049b7ea9d05;hb=ddd57c279f467e18c4fb3a661f21a069a5a37a1f;hp=c9a0b33715bc829a7dae446f5f5e1b29d1d78e26;hpb=f8c05f21cc743132fb7c4b996568c09a374725b9;p=ppp.git diff --git a/pppd/tty.c b/pppd/tty.c index c9a0b33..4d5b2db 100644 --- a/pppd/tty.c +++ b/pppd/tty.c @@ -83,7 +83,6 @@ #include #include #include -#include #include #include #include @@ -1072,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) @@ -1121,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);