From 41eb0ad64e6d003368ccf8f3212f190a829aae10 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 14 Nov 2017 20:22:31 +0000 Subject: Print motd on console and web ui --- xmrstak/jconf.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xmrstak/jconf.cpp') diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp index 4eb3a70..a9f484f 100644 --- a/xmrstak/jconf.cpp +++ b/xmrstak/jconf.cpp @@ -51,7 +51,7 @@ using namespace rapidjson; * This enum needs to match index in oConfigValues, otherwise we will get a runtime error */ enum configEnum { - aPoolList, bTlsSecureAlgo, sCurrency, iCallTimeout, iNetRetry, iGiveUpLimit, iVerboseLevel, iAutohashTime, + aPoolList, bTlsSecureAlgo, sCurrency, iCallTimeout, iNetRetry, iGiveUpLimit, iVerboseLevel, bPrintMotd, iAutohashTime, bFlushStdout, bDaemonMode, sOutputFile, iHttpdPort, sHttpLogin, sHttpPass, bPreferIpv4, bAesOverride, sUseSlowMem }; @@ -71,6 +71,7 @@ configVal oConfigValues[] = { { iNetRetry, "retry_time", kNumberType }, { iGiveUpLimit, "giveup_limit", kNumberType }, { iVerboseLevel, "verbose_level", kNumberType }, + { bPrintMotd, "print_motd", kTrueType }, { iAutohashTime, "h_print_time", kNumberType }, { bFlushStdout, "flush_stdout", kTrueType}, { bDaemonMode, "daemon_mode", kTrueType }, @@ -228,6 +229,11 @@ uint64_t jconf::GetVerboseLevel() return prv->configValues[iVerboseLevel]->GetUint64(); } +bool jconf::PrintMotd() +{ + return prv->configValues[bPrintMotd]->GetBool(); +} + uint64_t jconf::GetAutohashTime() { return prv->configValues[iAutohashTime]->GetUint64(); -- cgit v1.1