mirror of
https://github.com/openwrt/packages.git
synced 2025-02-24 09:25:07 +00:00
The crude loop I wrote to come up with this changeset: find -L package/feeds/packages/ -name patches | \ sed 's/patches$/refresh/' | sort | xargs make Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
25 lines
719 B
Diff
25 lines
719 B
Diff
--- a/src/rrd_tool.c
|
|
+++ b/src/rrd_tool.c
|
|
@@ -225,11 +225,8 @@ int main(int argc, char *argv[])
|
|
struct rusage myusage;
|
|
struct timeval starttime;
|
|
struct timeval currenttime;
|
|
- struct timezone tz;
|
|
|
|
- tz.tz_minuteswest =0;
|
|
- tz.tz_dsttime=0;
|
|
- gettimeofday(&starttime,&tz);
|
|
+ gettimeofday(&starttime,NULL);
|
|
#endif
|
|
|
|
while (fgets(aLine, sizeof(aLine)-1, stdin)){
|
|
@@ -252,7 +249,7 @@ int main(int argc, char *argv[])
|
|
|
|
#if HAVE_GETRUSAGE
|
|
getrusage(RUSAGE_SELF,&myusage);
|
|
- gettimeofday(¤ttime,&tz);
|
|
+ gettimeofday(¤ttime,NULL);
|
|
printf("OK u:%1.2f s:%1.2f r:%1.2f\n",
|
|
(double)myusage.ru_utime.tv_sec+
|
|
(double)myusage.ru_utime.tv_usec/1000000.0,
|