You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
489 B

  1. --- a/utils.c
  2. +++ b/utils.c
  3. @@ -18,12 +18,11 @@
  4. double get_ts(void)
  5. {
  6. struct timeval ts;
  7. - struct timezone tz;
  8. - if (gettimeofday(&ts, &tz) == -1)
  9. + if (gettimeofday(&ts, NULL) == -1)
  10. error_exit(gettext("gettimeofday failed"));
  11. - return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0 + (double)(tz.tz_minuteswest * 60);
  12. + return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0;
  13. }
  14. void split_string(const char *in, const char *split, char ***list, int *list_n)