Chuck e17961f67e
optimize the performance of obtaining CPU temperature (#6398)
Preformance Test (on NanoPi R2s, repeat 1000 times):

old command:

temp="$(awk "BEGIN{printf (\"%.1f\n\",$(cat /sys/class/thermal/thermal_zone0/temp)/1000) }")°C"

```
real    0m 9.20s
user    0m 3.29s
sys     0m 6.24s
```

new command:

temp="$(awk '{ printf("%.1f °C", $0 / 1000) }' /sys/class/thermal/thermal_zone0/temp)"

```
real    0m 5.57s
user    0m 1.78s
sys     0m 3.97s
```

Signed-off-by: Chuck <fanck0605@qq.com>
2021-02-21 12:27:55 +08:00
..
2020-03-15 14:40:20 +08:00
2020-04-09 00:30:15 +08:00
2018-11-19 17:03:34 +08:00
2019-01-03 19:36:02 +08:00
2019-08-08 09:56:00 -07:00
2020-12-28 14:25:16 +08:00
2021-02-03 12:40:47 +08:00
2020-07-08 16:28:32 +08:00
2021-01-18 15:52:25 +08:00
2018-10-30 13:29:59 +08:00
2020-06-07 10:31:47 +08:00
2018-12-10 00:04:10 +08:00
2020-06-20 16:16:43 +08:00
2020-06-07 10:45:38 +08:00
2020-07-05 18:36:43 +08:00
2020-06-07 11:26:36 +08:00
2020-04-30 11:31:31 +08:00
2020-03-24 18:24:26 +08:00
2021-02-01 11:16:48 +08:00
2020-06-23 10:45:16 +08:00
2020-09-09 11:32:26 +08:00
2020-10-21 14:52:21 +08:00
2020-03-02 04:47:59 -08:00
2020-10-21 14:52:21 +08:00
2020-03-22 21:04:07 +08:00
2020-10-21 14:52:21 +08:00
2020-07-19 13:54:32 +08:00
2020-07-02 21:00:28 +08:00
2018-10-30 13:29:59 +08:00