[Qt] show number of in/out connections in debug console
This commit is contained in:
@@ -349,7 +349,14 @@ void RPCConsole::message(int category, const QString &message, bool html)
|
||||
|
||||
void RPCConsole::setNumConnections(int count)
|
||||
{
|
||||
ui->numberOfConnections->setText(QString::number(count));
|
||||
if (!clientModel)
|
||||
return;
|
||||
|
||||
QString connections = QString::number(count) + " (";
|
||||
connections += tr("In:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_IN)) + " / ";
|
||||
connections += tr("Out:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_OUT)) + ")";
|
||||
|
||||
ui->numberOfConnections->setText(connections);
|
||||
}
|
||||
|
||||
void RPCConsole::setNumBlocks(int count, int countOfPeers)
|
||||
|
||||
Reference in New Issue
Block a user