[RPC] Add an uptime command that displays the amount of time that bitcoind has been running
This commit is contained in:
committed by
lateminer
parent
5a5d74b07c
commit
32f0591954
@@ -24,7 +24,6 @@
|
||||
|
||||
class CBlockIndex;
|
||||
|
||||
static const int64_t nClientStartupTime = GetTime();
|
||||
static int64_t nLastHeaderTipUpdateNotification = 0;
|
||||
static int64_t nLastBlockTipUpdateNotification = 0;
|
||||
|
||||
@@ -182,7 +181,7 @@ bool ClientModel::isReleaseVersion() const
|
||||
|
||||
QString ClientModel::formatClientStartupTime() const
|
||||
{
|
||||
return QDateTime::fromTime_t(nClientStartupTime).toString();
|
||||
return QDateTime::fromTime_t(GetStartupTime()).toString();
|
||||
}
|
||||
|
||||
QString ClientModel::dataDir() const
|
||||
|
||||
Reference in New Issue
Block a user