iputils-20020124-countermeasures.patch 545 B

12345678910111213
  1. --- iputils/ping_common.c.countermeasures Tue May 21 10:06:05 2002
  2. +++ iputils/ping_common.c Tue May 21 10:12:42 2002
  3. @@ -628,7 +628,8 @@
  4. tvsub(tv, &tmp_tv);
  5. triptime = tv->tv_sec * 1000000 + tv->tv_usec;
  6. if (triptime < 0) {
  7. - fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
  8. + if (options & F_VERBOSE)
  9. + fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
  10. triptime = 0;
  11. if (!(options & F_LATENCY)) {
  12. gettimeofday(tv, NULL);