1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00:00

Add a 3-Hour graph

This commit is contained in:
jagannatharjun 2020-12-30 12:08:21 +05:30
parent c8979a6a49
commit f3e4338efc
3 changed files with 6 additions and 0 deletions

View File

@ -230,6 +230,10 @@ void SpeedPlotView::setPeriod(const TimePeriod period)
m_currentMaxDuration = 30min; m_currentMaxDuration = 30min;
m_currentAverager = &m_averager30Min; m_currentAverager = &m_averager30Min;
break; break;
case SpeedPlotView::HOUR3:
m_currentMaxDuration = 3h;
m_currentAverager = &m_averager6Hour;
break;
case SpeedPlotView::HOUR6: case SpeedPlotView::HOUR6:
m_currentMaxDuration = 6h; m_currentMaxDuration = 6h;
m_currentAverager = &m_averager6Hour; m_currentAverager = &m_averager6Hour;

View File

@ -71,6 +71,7 @@ public:
MIN1 = 0, MIN1 = 0,
MIN5, MIN5,
MIN30, MIN30,
HOUR3,
HOUR6, HOUR6,
HOUR12, HOUR12,
HOUR24 HOUR24

View File

@ -71,6 +71,7 @@ SpeedWidget::SpeedWidget(PropertiesWidget *parent)
m_periodCombobox->addItem(tr("1 Minute")); m_periodCombobox->addItem(tr("1 Minute"));
m_periodCombobox->addItem(tr("5 Minutes")); m_periodCombobox->addItem(tr("5 Minutes"));
m_periodCombobox->addItem(tr("30 Minutes")); m_periodCombobox->addItem(tr("30 Minutes"));
m_periodCombobox->addItem(tr("3 Hours"));
m_periodCombobox->addItem(tr("6 Hours")); m_periodCombobox->addItem(tr("6 Hours"));
m_periodCombobox->addItem(tr("12 Hours")); m_periodCombobox->addItem(tr("12 Hours"));
m_periodCombobox->addItem(tr("24 Hours")); m_periodCombobox->addItem(tr("24 Hours"));