mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
rrdtool1: import from packages, add myself as maintainer
While we're at it, relocate from libs/ to utils/ as it provides executables and change the directory name from rrdtool-1.0.x to rrdtool1 to make it match the source package name. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
--- a/src/rrd_tool.c
|
||||
+++ b/src/rrd_tool.c
|
||||
@@ -225,11 +225,8 @@
|
||||
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 @@
|
||||
|
||||
#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,
|
||||
Reference in New Issue
Block a user