X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_format.h;h=e641f77991d04850204a58ccced8f046052dad4c;hb=a9e69acbc184063dcc0eda6a250ee1b7ae1cbb47;hp=b9fa2c266b8cef8d800c60ff3b163650c75dbc48;hpb=5cd0dd8d55ee429121205f8fa5c3dace5301631b;p=rrdtool.git diff --git a/src/rrd_format.h b/src/rrd_format.h index b9fa2c2..e641f77 100644 --- a/src/rrd_format.h +++ b/src/rrd_format.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.0.33 Copyright Tobias Oetiker, 1997, 1998, 1999 + * RRDtool 1.2.13 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_format.h RRD Database Format header *****************************************************************************/ @@ -19,7 +19,9 @@ *****************************************************************************/ #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" @@ -248,6 +250,8 @@ typedef struct rra_def_t { 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;