projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow hyphen character in DEF_NAM_FMT to match DS_NAM_FMT.
[rrdtool.git]
/
src
/
rrd_format.h
diff --git
a/src/rrd_format.h
b/src/rrd_format.h
index
b9fa2c2
..
1a58ebb
100644
(file)
--- a/
src/rrd_format.h
+++ b/
src/rrd_format.h
@@
-19,7
+19,9
@@
*****************************************************************************/
#define RRD_COOKIE "RRD"
*****************************************************************************/
#define RRD_COOKIE "RRD"
-#define RRD_VERSION "0002"
+/* #define RRD_VERSION "0002" */
+/* changed because microsecond precision requires another field */
+#define RRD_VERSION "0003"
#define FLOAT_COOKIE 8.642135E130
#include "rrd_nan_inf.h"
#define FLOAT_COOKIE 8.642135E130
#include "rrd_nan_inf.h"
@@
-248,6
+250,8
@@
typedef struct rra_def_t {
typedef struct live_head_t {
time_t last_up; /* when was rrd last updated */
typedef struct live_head_t {
time_t last_up; /* when was rrd last updated */
+ long last_up_usec; /* micro seconds part of the
+ update timestamp. Always >= 0 */
} live_head_t;
} live_head_t;