diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-26 23:46:10 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-26 23:46:10 +0000 |
commit | 24cd5a603c74e4733eeaf61c18c06558e1fd28f4 (patch) | |
tree | d6c2093118fbf02076c1eef147ffaebfad44500b /src/rrdbotd.h | |
parent | 154752ce6169093a36ffeb3cce3c408e1da2d3b2 (diff) |
Make our own time type for use in monitoring.
Diffstat (limited to 'src/rrdbotd.h')
-rw-r--r-- | src/rrdbotd.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/rrdbotd.h b/src/rrdbotd.h index 8c826e1..74f8fd5 100644 --- a/src/rrdbotd.h +++ b/src/rrdbotd.h @@ -40,6 +40,7 @@ #define __RRDBOTD_H__ #include <values.h> +#include <stdint.h> #include "asn1.h" #include "snmp.h" @@ -50,6 +51,7 @@ * DATA */ +typedef uint64_t mstime; #define RB_UNKNOWN -DBL_MAX struct _rb_item; @@ -90,8 +92,8 @@ typedef struct _rb_host /* Host resolving and book keeping */ struct sockaddr_any address; - uint64_t interval; - uint64_t last_resolved; + mstime interval; + mstime last_resolved; /* Next in list of hosts */ struct _rb_host* next; @@ -106,14 +108,14 @@ typedef struct _rb_poller /* This points into the memory above */ const char* rrdname; - uint64_t interval; - uint64_t timeout; + mstime interval; + mstime timeout; /* The things to poll. rb_poller owns this list */ rb_item* items; /* Book keeping */ - uint64_t last_polled; + mstime last_polled; /* Next in list of pollers */ struct _rb_poller* next; |