Browse Source

Change default log interval to 20 seconds

Luke Dashjr 12 years ago
parent
commit
735b076fd5
2 changed files with 4 additions and 3 deletions
  1. 3 2
      README
  2. 1 1
      miner.c

+ 3 - 2
README

@@ -233,7 +233,7 @@ Options for both config file and command line:
 --force-dev-init    Always initialize devices when possible (such as bitstream uploads to some FPGAs)
 --force-dev-init    Always initialize devices when possible (such as bitstream uploads to some FPGAs)
 --kernel-path|-K <arg> Specify a path to where bitstream and kernel files are (default: "/usr/local/bin")
 --kernel-path|-K <arg> Specify a path to where bitstream and kernel files are (default: "/usr/local/bin")
 --load-balance      Change multipool strategy from failover to quota based balance
 --load-balance      Change multipool strategy from failover to quota based balance
---log|-l <arg>      Interval in seconds between log output (default: 5)
+--log|-l <arg>      Interval in seconds between log output (default: 20)
 --log-file|-L <arg> Append log file for output messages
 --log-file|-L <arg> Append log file for output messages
 --log-microseconds  Include microseconds in log output
 --log-microseconds  Include microseconds in log output
 --monitor|-m <arg>  Use custom pipe cmd for output messages
 --monitor|-m <arg>  Use custom pipe cmd for output messages
@@ -456,7 +456,8 @@ The totals line shows the following:
 Each column is as follows:
 Each column is as follows:
   The number of devices and processors currently mining
   The number of devices and processors currently mining
   Hottest temperature reported by any processor
   Hottest temperature reported by any processor
-  5 second exponentially decaying average hash rate
+  20 second exponentially decaying average hash rate (configurable with --log
+      option)
   An all time average hash rate
   An all time average hash rate
   An all time average hash rate based on actual nonces found, adjusted for pool
   An all time average hash rate based on actual nonces found, adjusted for pool
       reject and stale rate
       reject and stale rate

+ 1 - 1
miner.c

@@ -158,7 +158,7 @@ const int opt_cutofftemp = 95;
 int opt_hysteresis = 3;
 int opt_hysteresis = 3;
 static int opt_retries = -1;
 static int opt_retries = -1;
 int opt_fail_pause = 5;
 int opt_fail_pause = 5;
-int opt_log_interval = 5;
+int opt_log_interval = 20;
 int opt_queue = 1;
 int opt_queue = 1;
 int opt_scantime = 60;
 int opt_scantime = 60;
 int opt_expiry = 120;
 int opt_expiry = 120;