home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add summary of process state meanings
[khatus.git]
/
bin
/
khatus_sensor_temperature
diff --git
a/bin/khatus_sensor_temperature
b/bin/khatus_sensor_temperature
index
6f9bd23
..
321c8d8
100755
(executable)
--- a/
bin/khatus_sensor_temperature
+++ b/
bin/khatus_sensor_temperature
@@
-4,4
+4,12
@@
set -e
thermal_zone="$1"
thermal_zone="$1"
-cat "/sys/class/thermal/thermal_zone${thermal_zone}/temp"
+awk '
+ BEGIN {
+ OFS = msg_fs ? msg_fs : "|"
+ Kfs = key_fs ? key_fs : ":"
+ }
+
+ {print("temp_c", $1 / 1000)}
+' \
+"/sys/class/thermal/thermal_zone${thermal_zone}/temp"
This page took
0.027701 seconds
and
4
git commands to generate.