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

Method clear

src/qt/trafficgraphwidget.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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