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

Method setClientModel

src/qt/trafficgraphwidget.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void TrafficGraphWidget::setClientModel(ClientModel *model)
37{
38 clientModel = model;
39 if(model) {
40 nLastBytesIn = model->node().getTotalBytesRecv();
41 nLastBytesOut = model->node().getTotalBytesSent();
42 }
43}
44
45std::chrono::minutes TrafficGraphWidget::getGraphRange() const { return m_range; }
46

Callers

nothing calls this directly

Calls 2

getTotalBytesRecvMethod · 0.80
getTotalBytesSentMethod · 0.80

Tested by

no test coverage detected