MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / clear

Method clear

src/qt/trafficgraphwidget.cpp:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void TrafficGraphWidget::clear()
165{
166 timer->stop();
167
168 vSamplesOut.clear();
169 vSamplesIn.clear();
170 fMax = 0.0f;
171
172 if(clientModel) {
173 nLastBytesIn = clientModel->node().getTotalBytesRecv();
174 nLastBytesOut = clientModel->node().getTotalBytesSent();
175 }
176 timer->start();
177}

Callers

nothing calls this directly

Calls 4

getTotalBytesRecvMethod · 0.80
getTotalBytesSentMethod · 0.80
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected