aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 15:07:14 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 15:07:14 +0000
commit6d8e2aa54fda9134071c5053dda5a45e647e82b4 (patch)
tree4647d48316fd66e0a07612e4213c26b1a5b24dc9 /modules
parent6c38051d94805391b76b18298b991004902592f5 (diff)
Updated lm-sensors modules
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/cputemp (renamed from modules/temperature)4
-rwxr-xr-xmodules/fanspeed2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/temperature b/modules/cputemp
index 62ff63a..614e0e1 100755
--- a/modules/temperature
+++ b/modules/cputemp
@@ -3,7 +3,7 @@
# Gets temperature of the CPU
# Dependencies: lm_sensors
-get_temperature()
+get_cputemp()
{
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000)
@@ -18,4 +18,4 @@ get_temperature()
echo " $CPU_TEMP"
}
-get_temperature
+get_cputemp
diff --git a/modules/fanspeed b/modules/fanspeed
index 16af999..8cc4c52 100755
--- a/modules/fanspeed
+++ b/modules/fanspeed
@@ -7,7 +7,7 @@ PREFIX=' '
get_fan_speed()
{
- echo "$PREFIX$(sensors | grep fan1 | cut -d " " -f 9) RPM"
+ echo "$PREFIX$(sensors | grep fan1 | awk 'NR==1{print $2}') RPM"
}
get_fan_speed