Browse Source

modminer+x6500: Expose frequencies to API in terms of MHz to be consistent with ztex driver and cgminer

Luke Dashjr 13 years ago
parent
commit
6010d7d621
2 changed files with 6 additions and 6 deletions
  1. 3 3
      driver-modminer.c
  2. 3 3
      driver-x6500.c

+ 3 - 3
driver-modminer.c

@@ -602,11 +602,11 @@ get_modminer_api_extra_device_status(struct cgpu_info*modminer)
 		f = state->temp;
 		root = api_add_temp(root, "Temperature", &f, true);
 	}
-	d = (double)state->dclk.freqM * 2 * 1000000.;
+	d = (double)state->dclk.freqM * 2;
 	root = api_add_freq(root, "Frequency", &d, true);
-	d = (double)state->dclk.freqMaxM * 2 * 1000000.;
+	d = (double)state->dclk.freqMaxM * 2;
 	root = api_add_freq(root, "Cool Max Frequency", &d, true);
-	d = (double)state->freqMaxMaxM * 2 * 1000000.;
+	d = (double)state->freqMaxMaxM * 2;
 	root = api_add_freq(root, "Max Frequency", &d, true);
 	root = api_add_int(root, "Hardware Errors", &state->bad_share_counter, true);
 	root = api_add_int(root, "Valid Nonces", &state->good_share_counter, true);

+ 3 - 3
driver-x6500.c

@@ -611,11 +611,11 @@ get_x6500_api_extra_device_status(struct cgpu_info *x6500)
 
 	if (fpga->temp)
 		root = api_add_temp(root, "Temperature", &fpga->temp, true);
-	d = (double)fpga->dclk.freqM * 2 * 1000000.;
+	d = (double)fpga->dclk.freqM * 2;
 	root = api_add_freq(root, "Frequency", &d, true);
-	d = (double)fpga->dclk.freqMaxM * 2 * 1000000.;
+	d = (double)fpga->dclk.freqMaxM * 2;
 	root = api_add_freq(root, "Cool Max Frequency", &d, true);
-	d = (double)fpga->freqMaxMaxM * 2 * 1000000.;
+	d = (double)fpga->freqMaxMaxM * 2;
 	root = api_add_freq(root, "Max Frequency", &d, true);
 
 	return root;