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

Method clear

src/qt/trafficgraphwidget.cpp:158–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void TrafficGraphWidget::clear()
159{
160 timer->stop();
161
162 vSamplesOut.clear();
163 vSamplesIn.clear();
164 fMax = 0.0f;
165
166 if(clientModel) {
167 nLastBytesIn = clientModel->node().getTotalBytesRecv();
168 nLastBytesOut = clientModel->node().getTotalBytesSent();
169 }
170 timer->start();
171}

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