projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d30131
)
src/plugin.h: Use `int64_t' for `derive_t' and `uint64_t' for `absolute_t'.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 1 Jul 2009 09:00:32 +0000
(11:00 +0200)
committer
Florian Forster
<octo@noris.net>
Wed, 1 Jul 2009 13:41:26 +0000
(15:41 +0200)
src/plugin.h
patch
|
blob
|
history
diff --git
a/src/plugin.h
b/src/plugin.h
index
fd74150
..
0ccb198
100644
(file)
--- a/
src/plugin.h
+++ b/
src/plugin.h
@@
-28,10
+28,10
@@
#define DATA_MAX_NAME_LEN 64
#define DATA_MAX_NAME_LEN 64
-#define DS_TYPE_COUNTER 0
-#define DS_TYPE_GAUGE 1
+#define DS_TYPE_COUNTER
0
+#define DS_TYPE_GAUGE
1
#define DS_TYPE_DERIVE 2
#define DS_TYPE_DERIVE 2
-#define DS_TYPE_ABSOLUTE
3
+#define DS_TYPE_ABSOLUTE 3
#ifndef LOG_ERR
# define LOG_ERR 3
#ifndef LOG_ERR
# define LOG_ERR 3
@@
-60,15
+60,15
@@
*/
typedef unsigned long long counter_t;
typedef double gauge_t;
*/
typedef unsigned long long counter_t;
typedef double gauge_t;
-typedef
unsigned long long
derive_t;
-typedef u
nsigned long long
absolute_t;
+typedef
int64_t
derive_t;
+typedef u
int64_t
absolute_t;
union value_u
{
union value_u
{
- counter_t counter;
- gauge_t gauge;
+ counter_t
counter;
+ gauge_t
gauge;
derive_t derive;
derive_t derive;
- absolute_t
absolute;
+ absolute_t absolute;
};
typedef union value_u value_t;
};
typedef union value_u value_t;