mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-30 11:39:29 -07:00
Add configuration age to listnetworks results and GUI.
This commit is contained in:
parent
31d718c4a4
commit
4296db2358
9 changed files with 130 additions and 57 deletions
|
@ -28,9 +28,12 @@ Network::~Network()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void Network::setStatus(const std::string &status)
|
||||
void Network::setStatus(const std::string &status,const std::string &age)
|
||||
{
|
||||
ui->statusLabel->setText(QString(status.c_str()));
|
||||
if (status == "OK")
|
||||
ui->ageLabel->setText(QString("(configuration is ") + age.c_str() + " seconds old)");
|
||||
else ui->ageLabel->setText(QString());
|
||||
}
|
||||
|
||||
void Network::setNetworkName(const std::string &name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue