From 23643fabad3b78bb0ab15ae1cb96f49efbed8884 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Wed, 6 Nov 2019 14:59:52 +0000 Subject: [PATCH] Tweaked temperature modules --- dwmbar | 1 - modules/temperature | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dwmbar b/dwmbar index 67e97f7..44e0ca8 100755 --- a/dwmbar +++ b/dwmbar @@ -95,7 +95,6 @@ check_files while :; do date=$(date +'%S') if [ $(( 10#$date % 5 )) -eq 0 ]; then - echo "check" wget --spider -q www.google.com if [[ $? -eq 0 ]]; then diff --git a/modules/temperature b/modules/temperature index 39fe39d..62ff63a 100755 --- a/modules/temperature +++ b/modules/temperature @@ -8,7 +8,7 @@ get_temperature() # CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) # CPU_TEMP=$(expr $CPU_T / 1000) - CPU_TEMP="$(sensors | grep temp1 | awk '{gsub("+", " "); print $2}')" + CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); print $2}')" # elif [ "$CPU_TEMP" -le 10 ]; then # echo "  $CPU_TEMP"