Aggregates getAggregates(long tStart, long tEnd) throws RrdException { Aggregates agg = new Aggregates(); agg.first = agg.last = agg.min = agg.max = agg.average = value; agg.total = value * (tEnd - tStart); return agg; }
/** * Same as SDef; the aggregates of a static value are all just the * same static value. * * Assumes this def has been realized by calling calculate(), otherwise * the aggregated values will be NaN */ @Override Aggregates getAggregates(long tStart, long tEnd) throws RrdException { Aggregates agg = new Aggregates(); agg.first = agg.last = agg.min = agg.max = agg.average = m_value; agg.total = m_value * (tEnd - tStart); return agg; }
Aggregates getAggregates(long tStart, long tEnd) { Aggregates agg = new Aggregates(); int cnt = 0; int lslstep = 0;
Aggregates getAggregates(long tStart, long tEnd) throws RrdException { Aggregates agg = new Aggregates(); agg.first = agg.last = agg.min = agg.max = agg.average = value; agg.total = value * (tEnd - tStart); return agg; }
Aggregates getAggregates(long tStart, long tEnd) { Aggregates agg = new Aggregates(); long totalSeconds = 0; boolean firstFound = false;