Added version field to config file.

This commit is contained in:
XMRig
2019-08-17 04:27:37 +07:00
parent e747f8b06c
commit b4ea93d82d
6 changed files with 42 additions and 8 deletions

View File

@@ -134,6 +134,7 @@ bool xmrig::BaseConfig::read(const IJsonReader &reader, const char *fileName)
Log::colors = reader.getBool("colors", Log::colors);
m_logFile = reader.getString("log-file");
m_userAgent = reader.getString("user-agent");
m_version = reader.getUint("version");
setPrintTime(reader.getUint("print-time", 60));