aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-04-18 21:44:42 -0400
committerCory Fields <[email protected]>2016-09-08 12:24:06 -0400
commit63cafa6329e1a0a1daf2d324931aca42ba1cbb19 (patch)
treec41aea400167d9e92eb6ac5fd624f4d08da6eda6 /src/qt/clientmodel.cpp
parentnet: SocketSendData returns written size (diff)
downloaddiscoin-63cafa6329e1a0a1daf2d324931aca42ba1cbb19.tar.xz
discoin-63cafa6329e1a0a1daf2d324931aca42ba1cbb19.zip
net: move send/recv statistics to CConnman
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index f72bbfe6b..83c78850e 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -72,12 +72,16 @@ int ClientModel::getNumBlocks() const
quint64 ClientModel::getTotalBytesRecv() const
{
- return CNode::GetTotalBytesRecv();
+ if(!g_connman)
+ return 0;
+ return g_connman->GetTotalBytesRecv();
}
quint64 ClientModel::getTotalBytesSent() const
{
- return CNode::GetTotalBytesSent();
+ if(!g_connman)
+ return 0;
+ return g_connman->GetTotalBytesSent();
}
QDateTime ClientModel::getLastBlockDate() const