diff options
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; |