Added pause-on-active
option
Windows only for now. When set to true, pauses mining when user touches mouse or keyboard.
This commit is contained in:
parent
8e3fec5768
commit
82830e359a
13 changed files with 57 additions and 6 deletions
|
@ -62,6 +62,7 @@ const char *BaseConfig::kDryRun = "dry-run";
|
|||
const char *BaseConfig::kHttp = "http";
|
||||
const char *BaseConfig::kLogFile = "log-file";
|
||||
const char *BaseConfig::kPauseOnBattery = "pause-on-battery";
|
||||
const char *BaseConfig::kPauseOnActive = "pause-on-active";
|
||||
const char *BaseConfig::kPrintTime = "print-time";
|
||||
const char *BaseConfig::kSyslog = "syslog";
|
||||
const char *BaseConfig::kTitle = "title";
|
||||
|
@ -92,6 +93,7 @@ bool xmrig::BaseConfig::read(const IJsonReader &reader, const char *fileName)
|
|||
m_syslog = reader.getBool(kSyslog, m_syslog);
|
||||
m_watch = reader.getBool(kWatch, m_watch);
|
||||
m_pauseOnBattery = reader.getBool(kPauseOnBattery, m_pauseOnBattery);
|
||||
m_pauseOnActive = reader.getBool(kPauseOnActive, m_pauseOnActive);
|
||||
m_logFile = reader.getString(kLogFile);
|
||||
m_userAgent = reader.getString(kUserAgent);
|
||||
m_printTime = std::min(reader.getUint(kPrintTime, m_printTime), 3600U);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue