aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorRicardo Velhote <rvelhote@gmail.com>2017-05-14 19:18:26 +0100
committerRicardo Velhote <rvelhote@gmail.com>2017-06-25 20:25:45 +0100
commitc07475294ae2c60f1dcc394922838b1f1f57b476 (patch)
treec319c0083959385a694e7b30ea7f00422c5c82b1 /src/qt/clientmodel.cpp
parentd609fd85ca41c003233d74fbd6c680970ad4a48b (diff)
[RPC] Add an uptime command that displays the amount of time that bitcoind has been running
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 3dfb51ccfa..33f4535ee2 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -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