From ef44e88ef97949d4cd120edb39185ebdad024e8c Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 30 Jan 2017 12:35:04 +0000 Subject: [PATCH] ccminer: link --max-log-rate to the command line --- README.txt | 3 ++- ccminer.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index 5d45c46..2a50c01 100644 --- a/README.txt +++ b/README.txt @@ -163,6 +163,7 @@ its command line interface and options. --max-temp=N Only mine if gpu temp is less than specified value --max-rate=N[KMG] Only mine if net hashrate is less than specified value --max-diff=N Only mine if net difficulty is less than specified value + --max-log-rate Interval to reduce per gpu hashrate logs (default: 3) --pstate=0 will force the Geforce 9xx to run in P0 P-State --plimit=150W set the gpu power limit, allow multiple values for N cards --tlimit=85 Set the gpu thermal limit (windows only) @@ -274,7 +275,7 @@ features. Rework the common skein512 (used in most algos except skein ;) Store the share diff of second nonce(s) in most algos Hardware monitoring thread to get more accurate power readings - Small changes for the quiet mode + Small changes for the quiet mode & max-log-rate to reduce logs Dec. 21th 2016 v1.8.4 Improve streebog based algos, veltor and sib (from alexis work) diff --git a/ccminer.cpp b/ccminer.cpp index 03985db..04aa708 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -312,7 +312,8 @@ Options:\n\ --max-temp=N Only mine if gpu temp is less than specified value\n\ --max-rate=N[KMG] Only mine if net hashrate is less than specified value\n\ --max-diff=N Only mine if net difficulty is less than specified value\n\ - Can be tuned with --resume-diff=N to set a resume value\n" + Can be tuned with --resume-diff=N to set a resume value\n\ + --max-log-rate Interval to reduce per gpu hashrate logs (default: 3)\n" #if defined(__linux) || defined(_WIN64) /* via nvml */ "\ --mem-clock=3505 Set the gpu memory max clock (346.72+ driver)\n\ @@ -407,6 +408,7 @@ struct option options[] = { { "keep-clocks", 0, NULL, 1074 }, { "tlimit", 1, NULL, 1075 }, { "led", 1, NULL, 1080 }, + { "max-log-rate", 1, NULL, 1019 }, #ifdef HAVE_SYSLOG_H { "syslog", 0, NULL, 'S' }, { "syslog-prefix", 1, NULL, 1018 }, @@ -3338,6 +3340,9 @@ void parse_arg(int key, char *arg) opt_syslog_pfx = strdup(arg); } break; + case 1019: // max-log-rate + opt_maxlograte = atoi(arg); + break; case 1020: p = strstr(arg, "0x"); ul = p ? strtoul(p, NULL, 16) : atol(arg);