Skip to content

Commit

Permalink
ccminer: link --max-log-rate to the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Jan 30, 2017
1 parent b9da6c6 commit ef44e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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 },
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ef44e88

Please sign in to comment.