shithub: riscv

Download patch

ref: 382c9ef92cf0830f5639906ffd5f363ecefd670a
parent: 9fbce3b1b4fba5b302aff49b6b769ecdcae59faa
author: mischief <[email protected]>
date: Wed Jun 13 07:59:14 EDT 2018

stats: read cputemp as C, set scale max to 100 C

--- a/sys/src/cmd/stats.c
+++ b/sys/src/cmd/stats.c
@@ -947,12 +947,12 @@
 {
 	ulong l;
 
-	*vmax = sleeptime;
+	*vmax = 100;
 	l = m->temp[0];
 	if(l == ~0 || l == 0)
 		*v = 0;
 	else
-		*v = (l-20)*27;
+		*v = l;
 }
 
 void