Browse Source

modminer: Include Hardware Errors and Valid Nonces in extra device status

Luke Dashjr 13 years ago
parent
commit
fac9bd589f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-modminer.c

+ 2 - 0
driver-modminer.c

@@ -384,6 +384,8 @@ get_modminer_extra_device_status(struct cgpu_info*modminer)
 
 		json_object_set(o, "Temperature", json_integer(state->temp));
 		json_object_set(o, "Frequency", json_real((double)state->clock * 1000000.));
+		json_object_set(o, "Hardware Errors", json_integer(state->bad_share_counter));
+		json_object_set(o, "Valid Nonces", json_integer(state->good_share_counter));
 
 		k[5] = 0x30 + i;
 		json_object_set(info, k, o);