MCPcopy Create free account
hub / github.com/ElementsProject/elements / setGraphRange

Method setGraphRange

src/qt/trafficgraphwidget.cpp:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void TrafficGraphWidget::setGraphRange(std::chrono::minutes new_range)
154{
155 m_range = new_range;
156 const auto msecs_per_sample{std::chrono::duration_cast<std::chrono::milliseconds>(m_range) / DESIRED_SAMPLES};
157 timer->stop();
158 timer->setInterval(msecs_per_sample);
159
160 clear();
161}
162
163void TrafficGraphWidget::clear()
164{

Callers 1

setTrafficGraphRangeMethod · 0.80

Calls 2

clearFunction · 0.85
stopMethod · 0.45

Tested by

no test coverage detected