Browse Source

modminer: Make single-processor statline look like other temperature-only statlines

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

+ 12 - 0
driver-modminer.c

@@ -465,6 +465,18 @@ get_modminer_statline_before(char *buf, struct cgpu_info *modminer)
 		return;
 		return;
 	}
 	}
 
 
+	struct thr_info*thr = modminer->thr[0];
+	struct modminer_fpga_state *state = thr->cgpu_data;
+	float gt = state->temp;
+	
+	if (gt > 0)
+		tailsprintf(buf, "%5.1fC ", gt);
+	else
+		tailsprintf(buf, "       ", gt);
+	tailsprintf(buf, "        | ");
+	
+	return;
+
 	if (tc > 4)
 	if (tc > 4)
 		tc = 4;
 		tc = 4;