32 #define RRDB_ENTRIES 240
Round-robin database (circular buffer) for storing timeseries data.
double data[240]
The statistics.
int append_to_timeseries(struct timed_stat *input, int input_size, struct timed_rrdb *timeseries)
Appends a number of timed statistics to a timeseries.
double average_n(struct timed_rrdb *timeseries, int n_samples)
Calculates the average of the last n stats for a given MSU.
Functions for the sending and receiving of statistics between ctrl and runtime.
int write_index
Offset into the rrdb at which writing has occurred.
#define RRDB_ENTRIES
timeseries.h
Interfaces for the creation and modification of the data-flow-graph and and general description of th...
Holds a single timestamped value.
struct timespec time[240]
The time at which the stats were gathered.
void print_timeseries(struct timed_rrdb *ts)
Prints the beginning and end of a timeseries.