]> git.lizzy.rs Git - plan9front.git/commitdiff
pc, pc64: fix cputemp decimal handling in amd10temprd (thanks Robert Ransom)
authorAlex Musolino <alex@musolino.id.au>
Thu, 19 Dec 2019 04:49:02 +0000 (15:19 +1030)
committerAlex Musolino <alex@musolino.id.au>
Thu, 19 Dec 2019 04:49:02 +0000 (15:19 +1030)
sys/src/9/pc/cputemp.c

index a7a1dcf68341950eb3a709b403f8e94f5f06d5c4..944c4a7743e5e6d0b896dfa02b5497617b09d37f 100644 (file)
@@ -148,7 +148,7 @@ amd10temprd(Chan*, void *a, long n, vlong offset)
                t = i/8;
                r = ".0";
                if(i % 8 >= 4)
-                       r = "0.5";
+                       r = ".5";
                /*
                 * only one value per nb; repeat per core
                 */