summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h.in
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-16 21:32:33 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-16 21:32:33 (GMT)
commitd02fedd5aab5d8d6047774a19eb21b27022e693d (patch)
treeb934b0fabaf583fb965ff32a691c375e272c8b10 /plugins/utils.h.in
parent71bd3b1d464ebd213731abb28f0648f506541b39 (diff)
downloadmonitoring-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.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/utils.h.in b/plugins/utils.h.in
index e910c41..5a3e120 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
55struct 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
61double delta_time (struct timeval tv);
62
66/* Handle strings safely */ 63/* Handle strings safely */
67 64
68void strip (char *buffer); 65void strip (char *buffer);