mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
[RPC] Add an uptime command that displays the amount of time that bitcoind has been running
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
|
||||
class CBlockIndex;
|
||||
|
||||
static const int64_t nClientStartupTime = GetTime();
|
||||
static int64_t nLastHeaderTipUpdateNotification = 0;
|
||||
static int64_t nLastBlockTipUpdateNotification = 0;
|
||||
|
||||
@@ -238,7 +237,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