Skip to content

Commit

Permalink
GUI: dashboard, charts update delay time increased for IBD.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Mar 11, 2021
1 parent 0f197ca commit b4ab286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qt/pivx/dashboardwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ void DashboardWidget::tryChartRefresh()
} else {
// Check for min update time to not reload the UI so often if the node is syncing.
int64_t now = GetTime();
if (lastRefreshTime + CHART_LOAD_MIN_TIME_INTERVAL < now) {
int chartLoadIntervalTime = CHART_LOAD_MIN_TIME_INTERVAL;
if (clientModel->inInitialBlockDownload()) chartLoadIntervalTime *= 6; // 90 seconds update
if (lastRefreshTime + chartLoadIntervalTime < now) {
lastRefreshTime = now;
refreshChart();
}
Expand Down

0 comments on commit b4ab286

Please sign in to comment.