shithub: riscv

Download patch

ref: 8fa9b7d6ffeb72fdf3dde147693a322ece2af30b
parent: 47c188c0c6c2a013aded790bcaa5c9640955e38b
author: Alex Musolino <[email protected]>
date: Thu Dec 19 10:19:02 EST 2019

pc, pc64: fix cputemp decimal handling in amd10temprd (thanks Robert Ransom)

--- a/sys/src/9/pc/cputemp.c
+++ b/sys/src/9/pc/cputemp.c
@@ -148,7 +148,7 @@
 		t = i/8;
 		r = ".0";
 		if(i % 8 >= 4)
-			r = "0.5";
+			r = ".5";
 		/*
 		 * only one value per nb; repeat per core
 		 */