Browse Source

Bugfix: Correct documentation for --shares option

Luke Dashjr 12 years ago
parent
commit
5d63552368
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README
  2. 1 1
      miner.c

+ 1 - 1
README

@@ -268,7 +268,7 @@ Options for both config file and command line:
 --set-device <arg>  Set default parameters on devices; eg, NFY:osc6_bits=50
 --set-device <arg>  Set default parameters on devices; eg, NFY:osc6_bits=50
 --setuid <arg>      Username of an unprivileged user to run as
 --setuid <arg>      Username of an unprivileged user to run as
 --sharelog <arg>    Append share log to file
 --sharelog <arg>    Append share log to file
---shares <arg>      Quit after mining N shares (default: unlimited)
+--shares <arg>      Quit after mining 2^32 * N hashes worth of shares (default: unlimited)
 --show-processors   Show per processor statistics in summary
 --show-processors   Show per processor statistics in summary
 --skip-security-checks <arg> Skip security checks sometimes to save bandwidth; only check 1/<arg>th of the time (default: never skip)
 --skip-security-checks <arg> Skip security checks sometimes to save bandwidth; only check 1/<arg>th of the time (default: never skip)
 --socks-proxy <arg> Set socks proxy (host:port) for all pools without a proxy specified
 --socks-proxy <arg> Set socks proxy (host:port) for all pools without a proxy specified

+ 1 - 1
miner.c

@@ -2224,7 +2224,7 @@ static struct opt_table opt_config_table[] = {
 		     "Append share log to file"),
 		     "Append share log to file"),
 	OPT_WITH_ARG("--shares",
 	OPT_WITH_ARG("--shares",
 		     opt_set_intval, NULL, &opt_shares,
 		     opt_set_intval, NULL, &opt_shares,
-		     "Quit after mining N shares (default: unlimited)"),
+		     "Quit after mining 2^32 * N hashes worth of shares (default: unlimited)"),
 	OPT_WITHOUT_ARG("--show-processors",
 	OPT_WITHOUT_ARG("--show-processors",
 			opt_set_bool, &opt_show_procs,
 			opt_set_bool, &opt_show_procs,
 			"Show per processor statistics in summary"),
 			"Show per processor statistics in summary"),