Add comments to config file.

This commit is contained in:
XMRig 2017-10-07 00:49:38 +03:00
parent fc810dc87b
commit 1123c20da0
2 changed files with 52 additions and 49 deletions

View file

@ -81,8 +81,11 @@ Options:\n\
"\ "\
--max-cpu-usage=N maximum CPU usage for automatic threads mode (default 75)\n\ --max-cpu-usage=N maximum CPU usage for automatic threads mode (default 75)\n\
--safe safe adjust threads and av settings for current CPU\n\ --safe safe adjust threads and av settings for current CPU\n\
--nicehash enable nicehash support\n\ --nicehash enable nicehash/xmrig-proxy support\n\
--print-time=N print hashrate report every N seconds\n\ --print-time=N print hashrate report every N seconds\n\
--api-port=N port for the miner API\n\
--api-access-token=T access token for API\n\
--api-worker-id=ID custom worker-id for API\n\
-h, --help display this help and exit\n\ -h, --help display this help and exit\n\
-V, --version output version information and exit\n\ -V, --version output version information and exit\n\
"; ";

View file

@ -1,31 +1,31 @@
{ {
"algo": "cryptonight", "algo": "cryptonight", // cryptonight (default) or cryptonight-lite
"av": 0, "av": 0, // algorithm variation, 0 auto select
"background": false, "background": false, // true to run the miner in the background
"colors": true, "colors": true, // false to disable colored output
"cpu-affinity": null, "cpu-affinity": null, // set process affinity to CPU core(s), mask "0x3" for cores 0 and 1
"cpu-priority": null, "cpu-priority": null, // set process priority (0 idle, 2 normal to 5 highest)
"donate-level": 5, "donate-level": 5, // donate level, mininum 1%
"log-file": null, "log-file": null, // log all output to a file, example: "c:/some/path/xmrig.log"
"max-cpu-usage": 75, "max-cpu-usage": 75, // maximum CPU usage for automatic mode, usually limiting factor is CPU cache not this option.
"print-time": 60, "print-time": 60, // print hashrate report every N seconds
"retries": 5, "retries": 5, // number of times to retry before switch to backup server
"retry-pause": 5, "retry-pause": 5, // time to pause between retries
"safe": false, "safe": false, // true to safe adjust threads and av settings for current CPU
"syslog": false, "syslog": false, // use system log for output messages
"threads": null, "threads": null, // number of miner threads
"pools": [ "pools": [
{ {
"url": "pool.minemonero.pro:5555", "url": "pool.minemonero.pro:5555", // URL of mining server
"user": "", "user": "", // username for mining server
"pass": "x", "pass": "x", // password for mining server
"keepalive": true, "keepalive": true, // send keepalived for prevent timeout (need pool support)
"nicehash": false "nicehash": false // enable nicehash/xmrig-proxy support
} }
], ],
"api": { "api": {
"port": 0, "port": 0, // port for the miner API https://github.com/xmrig/xmrig/wiki/API
"access-token": null, "access-token": null, // access token for API
"worker-id": null "worker-id": null // custom worker-id for API
} }
} }