002-no_timezone.patch 653 B

123456789101112131415161718192021222324
  1. --- a/src/rrd_tool.c
  2. +++ b/src/rrd_tool.c
  3. @@ -225,11 +225,8 @@
  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 @@
  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,