summaryrefslogtreecommitdiffstats
path: root/charts.d
diff options
context:
space:
mode:
authorpaulfantom <paulfantom@gmail.com>2016-06-08 12:35:26 +0200
committerpaulfantom <paulfantom@gmail.com>2016-06-08 12:35:26 +0200
commit2cc5f7e36d94a78cbec610a3add75d1ed6864c97 (patch)
tree86ba70db861923b3742fffebab932cbf8537504f /charts.d
parenta168f925b24e7aa5f75bb7c11c122ac8e517ec06 (diff)
wrong placing of exclude=
Diffstat (limited to 'charts.d')
-rwxr-xr-xcharts.d/sensors.chart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/charts.d/sensors.chart.sh b/charts.d/sensors.chart.sh
index 0d534b9a7b..6e77317783 100755
--- a/charts.d/sensors.chart.sh
+++ b/charts.d/sensors.chart.sh
@@ -62,6 +62,7 @@ sensors_check_files() {
[ "$excluded" != "1" ] && v="$( cat $f )" || v=0
v=$(( v + 1 - 1 ))
[ $v -ne 0 ] && echo "$f" && continue
+ excluded=
echo >&2 "$PROGRAM_NAME: sensors: $f gives zero values"
done
@@ -81,7 +82,6 @@ sensors_check_temp_type() {
v="$( cat $t )"
v=$(( v + 1 - 1 ))
[ $v -ne 0 ] && echo "$f" && continue
- excluded=
echo >&2 "$PROGRAM_NAME: sensors: $f is disabled"
done