Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
trafficgraphdata.cpp
Go to the documentation of this file.
19 TrafficGraphData::RangeMinutes[TrafficGraphData::Range_5m] * 60 * 1000 / TrafficGraphData::DESIRED_DATA_SAMPLES;
146 TrafficGraphData::SampleQueue TrafficGraphData::sumEach3Samples(const SampleQueue& rangeQueue, GraphRange range)
169 result.push_front(rangeQueue.at(lastUnusedSample) + rangeQueue.at(lastUnusedSample - 1) + rangeQueue.at(lastUnusedSample - 2));
242 float result = dataAmount / RangeMinutes[currentGraphRange] * RangeMinutes[TrafficGraphData::Range_5m];
TrafficGraphData(GraphRange range)
Definition: trafficgraphdata.cpp:21
static const int DesiredQueueSizes[]
Definition: trafficgraphdata.h:68
Definition: trafficgraphdata.h:45
SampleQueue sumEach2Samples(const SampleQueue &rangeQueue)
Definition: trafficgraphdata.cpp:134
Definition: trafficgraphdata.h:37
void setLastBytes(quint64 nLastBytesIn, quint64 nLastBytesOut)
Definition: trafficgraphdata.cpp:53
Definition: trafficgraphdata.h:44
void tryUpdateNextWithLast3Samples(GraphRange range, GraphRange nextRange)
Definition: trafficgraphdata.cpp:45
Definition: trafficgraphdata.h:43
SampleQueue getRangeQueue(GraphRange range)
Definition: trafficgraphdata.cpp:175
Definition: trafficgraphdata.h:40
static const int SMALLEST_SAMPLE_PERIOD
Definition: trafficgraphdata.h:50
static const int DESIRED_DATA_SAMPLES
Definition: trafficgraphdata.h:49
void tryUpdateNextWithLast2Samples(GraphRange range, GraphRange nextRange)
Definition: trafficgraphdata.cpp:37
Definition: trafficgraphdata.h:41
SampleQueue getCurrentRangeQueue()
Definition: trafficgraphdata.cpp:232
float convertSampleToBandwidth(float dataAmount)
Definition: trafficgraphdata.cpp:239
Definition: trafficgraphdata.h:42
Definition: trafficgraphdata.h:7
void tryAddingSampleToStash(GraphRange range)
Definition: trafficgraphdata.cpp:29
bool update(const TrafficSample &trafficSample)
Definition: trafficgraphdata.cpp:68
Definition: trafficgraphdata.h:38
void switchRange(GraphRange newRange)
Definition: trafficgraphdata.cpp:128
SampleQueue getCurrentRangeQueueWithAverageBandwidth()
Definition: trafficgraphdata.cpp:252
SampleQueue sumEach3Samples(const SampleQueue &rangeQueue, GraphRange range)
Definition: trafficgraphdata.cpp:146
Definition: trafficgraphdata.h:39
Definition: trafficgraphdata.h:36