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.

24 lines
719 B

  1. --- a/src/rrd_tool.c
  2. +++ b/src/rrd_tool.c
  3. @@ -225,11 +225,8 @@ int main(int argc, char *argv[])
  4. struct rusage myusage;
  5. struct timeval starttime;
  6. struct timeval currenttime;
  7. - struct timezone tz;
  8. - tz.tz_minuteswest =0;
  9. - tz.tz_dsttime=0;
  10. - gettimeofday(&starttime,&tz);
  11. + gettimeofday(&starttime,NULL);
  12. #endif
  13. while (fgets(aLine, sizeof(aLine)-1, stdin)){
  14. @@ -252,7 +249,7 @@ int main(int argc, char *argv[])
  15. #if HAVE_GETRUSAGE
  16. getrusage(RUSAGE_SELF,&myusage);
  17. - gettimeofday(&currenttime,&tz);
  18. + gettimeofday(&currenttime,NULL);
  19. printf("OK u:%1.2f s:%1.2f r:%1.2f\n",
  20. (double)myusage.ru_utime.tv_sec+
  21. (double)myusage.ru_utime.tv_usec/1000000.0,