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

Method setClientModel

src/qt/trafficgraphwidget.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void TrafficGraphWidget::setClientModel(ClientModel *model)
32{
33 clientModel = model;
34 if(model) {
35 nLastBytesIn = model->node().getTotalBytesRecv();
36 nLastBytesOut = model->node().getTotalBytesSent();
37 }
38}
39
40std::chrono::minutes TrafficGraphWidget::getGraphRange() const { return m_range; }
41

Callers

nothing calls this directly

Calls 2

getTotalBytesRecvMethod · 0.80
getTotalBytesSentMethod · 0.80

Tested by

no test coverage detected