Update pcsensor.c

-m showed only internal temperatures. fixed, that it shows correctly internal and external temperature.
This commit is contained in:
MacMarc 2015-08-18 20:28:26 +02:00
parent d4271f0779
commit 1b476bbe00

View file

@ -413,10 +413,10 @@ int main( int argc, char **argv) {
if (mrtg) { if (mrtg) {
if (formato==2) { if (formato==2) {
printf("%.2f\n", (9.0 / 5.0 * tempInC + 32.0)); printf("%.2f\n", (9.0 / 5.0 * tempInC + 32.0));
printf("%.2f\n", (9.0 / 5.0 * tempInC + 32.0)); printf("%.2f\n", (9.0 / 5.0 * tempOutC + 32.0));
} else { } else {
printf("%.2f\n", tempInC); printf("%.2f\n", tempInC);
printf("%.2f\n", tempInC); printf("%.2f\n", tempOutC);
} }
printf("%02d:%02d\n", printf("%02d:%02d\n",