diff options
| author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-16 21:32:33 +0000 |
|---|---|---|
| committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-16 21:32:33 +0000 |
| commit | d02fedd5aab5d8d6047774a19eb21b27022e693d (patch) | |
| tree | b934b0fabaf583fb965ff32a691c375e272c8b10 /plugins/utils.h.in | |
| parent | 71bd3b1d464ebd213731abb28f0648f506541b39 (diff) | |
| download | monitoring-plugins-d02fedd5aab5d8d6047774a19eb21b27022e693d.tar.gz | |
millisecond timimg where supported
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@125 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h.in')
| -rw-r--r-- | plugins/utils.h.in | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/utils.h.in b/plugins/utils.h.in index e910c417..5a3e1201 100644 --- a/plugins/utils.h.in +++ b/plugins/utils.h.in | |||
| @@ -52,17 +52,14 @@ struct timeval { | |||
| 52 | long tv_usec; /* microseconds */ | 52 | long tv_usec; /* microseconds */ |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | struct timezone { | ||
| 56 | int tz_minuteswest; /* minutes W of Greenwich */ | ||
| 57 | int tz_dsttime; /* type of dst correction */ | ||
| 58 | }; | ||
| 59 | |||
| 60 | #define gettimeofday (tvp,tz) {\ | 55 | #define gettimeofday (tvp,tz) {\ |
| 61 | tvp->tv_usec=0;\ | 56 | tvp->tv_usec=0;\ |
| 62 | tvp->tv_sec=(long)time();\ | 57 | tvp->tv_sec=(long)time();\ |
| 63 | } | 58 | } |
| 64 | #endif | 59 | #endif |
| 65 | 60 | ||
| 61 | double delta_time (struct timeval tv); | ||
| 62 | |||
| 66 | /* Handle strings safely */ | 63 | /* Handle strings safely */ |
| 67 | 64 | ||
| 68 | void strip (char *buffer); | 65 | void strip (char *buffer); |
