Xinqi Bao's Git

Return actual percentage for wifi_perc()
[slstatus.git] / components / temperature.c
1 /* See LICENSE file for copyright and license details. */
2 #include <stdio.h>
3
4 #include "../util.h"
5
6 const char *
7 temp(const char *file)
8 {
9 int temp;
10
11 return (pscanf(file, "%d", &temp) == 1) ?
12 bprintf("%d", temp / 1000) : NULL;
13 }