blob: 67bc9b15b4d64e2e24179535dfb243b5c130a7d9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- 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
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 @@ int main(int argc, char *argv[])
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,