add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / libs / rrdtool-1.0.x / patches / 002-no_timezone.patch
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  
9 -           tz.tz_minuteswest =0;
10 -           tz.tz_dsttime=0;
11 -           gettimeofday(&starttime,&tz);
12 +           gettimeofday(&starttime,NULL);
13  #endif
14  
15             while (fgets(aLine, sizeof(aLine)-1, stdin)){
16 @@ -252,7 +249,7 @@
17  
18  #if HAVE_GETRUSAGE
19                 getrusage(RUSAGE_SELF,&myusage);
20 -               gettimeofday(&currenttime,&tz);
21 +               gettimeofday(&currenttime,NULL);
22                 printf("OK u:%1.2f s:%1.2f r:%1.2f\n",
23                        (double)myusage.ru_utime.tv_sec+
24                        (double)myusage.ru_utime.tv_usec/1000000.0,