diff options
author | Shashwat <shaavan.github@gmail.com> | 2022-01-12 19:06:28 +0530 |
---|---|---|
committer | Shashwat <shaavan.github@gmail.com> | 2022-01-18 20:03:50 +0530 |
commit | f7a19ef774ef92ce348215593e3590a750c345e1 (patch) | |
tree | b76de9e250f8c2225c1c8b34cae53ad97d9f4a91 /src/qt/rpcconsole.cpp | |
parent | 16781e1bc9f8ffc721ebea73434e0066957bc959 (diff) |
qt,refactor: Use std::chrono in TrafficGraphWidget class
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 1cadfaeeb9..38bb78cb4a 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -54,6 +54,8 @@ #include <QTimer> #include <QVariant> +#include <chrono> + const int CONSOLE_HISTORY = 50; const int INITIAL_TRAFFIC_GRAPH_MINS = 30; const QSize FONT_RANGE(4, 40); @@ -1140,7 +1142,7 @@ void RPCConsole::on_sldGraphRange_valueChanged(int value) void RPCConsole::setTrafficGraphRange(int mins) { - ui->trafficGraph->setGraphRangeMins(mins); + ui->trafficGraph->setGraphRange(std::chrono::minutes{mins}); ui->lblGraphRange->setText(GUIUtil::formatDurationStr(std::chrono::minutes{mins})); } |