Browse Source

icarus: refactoring: commenting ICARUS_INFO members

Nate Woolls 11 years ago
parent
commit
433a09a239
1 changed files with 15 additions and 2 deletions
  1. 15 2
      driver-icarus.h

+ 15 - 2
driver-icarus.h

@@ -70,13 +70,16 @@ struct ICARUS_INFO {
 	// time to calculate the golden_ob
 	struct timeval golden_tv;
 
+	// History structures for calculating read_count
+	// when info->do_icarus_timing is true
 	struct ICARUS_HISTORY history[INFO_HISTORY+1];
 	uint32_t min_data_count;
 
-	// seconds per Hash
-	double Hs;
+	// Timeout scanning for a nonce (deciseconds)
 	int read_count;
+	// Timeout scanning for a golden nonce (deciseconds)
 	int probe_read_count;
+	
 	// ds limit for (short=/long=) read_count
 	int read_count_limit;
 
@@ -97,9 +100,18 @@ struct ICARUS_INFO {
 
 	// icarus-options
 	int baud;
+
+	// Used to calculate / display hash count
+	// when no nonce is found
+	// seconds per Hash
+	double Hs;
+
+	// Used to calculate / display hash count
+	// when a nonce is found
 	int work_division;
 	int fpga_count;
 	uint32_t nonce_mask;
+
 	enum icarus_reopen_mode reopen_mode;
 	bool reopen_now;
 	uint8_t user_set;
@@ -111,6 +123,7 @@ struct ICARUS_INFO {
 	// Bytes to read from Icarus for nonce
 	int read_size;
 	
+	// Settings used when probing / detecting
 	size_t ob_size;
 	const char *golden_ob;
 	const char *golden_nonce;