qt: Lower the number of data samples in TrafficGraphData to make it move much smoother (#3841)

This commit is contained in:
UdjinM6 2020-12-06 00:01:22 +03:00 committed by GitHub
parent 18c4ad1468
commit b8ad25e82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#include <qt/trafficgraphdata.h>
const int TrafficGraphData::RangeMinutes[] = {5,10,15,30,60,120,180,360,720,1440};
const int TrafficGraphData::DESIRED_DATA_SAMPLES = 800;
const int TrafficGraphData::DESIRED_DATA_SAMPLES = TrafficGraphData::RangeMinutes[TrafficGraphData::Range_5m] * 60; // i.e. one data sample per second for Range_5m
const int TrafficGraphData::DesiredQueueSizes[] = {
TrafficGraphData::DESIRED_DATA_SAMPLES, //Range_5m
TrafficGraphData::DESIRED_DATA_SAMPLES/2, //Range_10m