Browse Source

mmq - abbreviate the temperature numbers

Kano 13 years ago
parent
commit
f19b03c812
1 changed files with 3 additions and 3 deletions
  1. 3 3
      driver-modminer.c

+ 3 - 3
driver-modminer.c

@@ -804,14 +804,14 @@ static void check_temperature(struct thr_info *thr)
 		if (state->overheated) {
 		if (state->overheated) {
 			if (modminer->temp < MODMINER_OVERHEAT_TEMP) {
 			if (modminer->temp < MODMINER_OVERHEAT_TEMP) {
 				state->overheated = false;
 				state->overheated = false;
-				applog(LOG_WARNING, "%s%u: Recovered, temp less than (%f) now %f",
+				applog(LOG_WARNING, "%s%u: Recovered, temp less than (%.1f) now %.3f",
 					modminer->api->name, modminer->device_id,
 					modminer->api->name, modminer->device_id,
 					MODMINER_OVERHEAT_TEMP, modminer->temp);
 					MODMINER_OVERHEAT_TEMP, modminer->temp);
 			}
 			}
 		}
 		}
 		else if (modminer->temp >= MODMINER_OVERHEAT_TEMP) {
 		else if (modminer->temp >= MODMINER_OVERHEAT_TEMP) {
 			if (modminer->temp >= MODMINER_CUTOFF_TEMP) {
 			if (modminer->temp >= MODMINER_CUTOFF_TEMP) {
-				applog(LOG_WARNING, "%s%u: Hit thermal cutoff limit (%f) at %f, disabling!",
+				applog(LOG_WARNING, "%s%u: Hit thermal cutoff limit (%.1f) at %.3f, disabling!",
 					modminer->api->name, modminer->device_id,
 					modminer->api->name, modminer->device_id,
 					MODMINER_CUTOFF_TEMP, modminer->temp);
 					MODMINER_CUTOFF_TEMP, modminer->temp);
 
 
@@ -819,7 +819,7 @@ static void check_temperature(struct thr_info *thr)
 				state->overheated = true;
 				state->overheated = true;
 				dev_error(modminer, REASON_DEV_THERMAL_CUTOFF);
 				dev_error(modminer, REASON_DEV_THERMAL_CUTOFF);
 			} else {
 			} else {
-				 applog(LOG_WARNING, "%s%u: Overheat limit (%f) reached %f",
+				 applog(LOG_WARNING, "%s%u: Overheat limit (%.1f) reached %.3f",
 					modminer->api->name, modminer->device_id,
 					modminer->api->name, modminer->device_id,
 					MODMINER_OVERHEAT_TEMP, modminer->temp);
 					MODMINER_OVERHEAT_TEMP, modminer->temp);
 				modminer_delta_clock(thr, MODMINER_CLOCK_DOWN, true);
 				modminer_delta_clock(thr, MODMINER_CLOCK_DOWN, true);