mirror of
https://github.com/cmur2/munin-pcsensor.git
synced 2024-12-22 12:54:27 +01:00
More delay before first retry and retry two times since some systems aren't that fast
This commit is contained in:
parent
abc7c11732
commit
e70d6b59fd
6
pcsensor
6
pcsensor
@ -20,8 +20,12 @@ if [ "${1}" = "config" ]; then
|
|||||||
else
|
else
|
||||||
TEMP=`${PCSENSOR} -cm`
|
TEMP=`${PCSENSOR} -cm`
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
sleep 1
|
sleep 2
|
||||||
TEMP=`${PCSENSOR} -cm`
|
TEMP=`${PCSENSOR} -cm`
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
sleep 6
|
||||||
|
TEMP=`${PCSENSOR} -cm`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "temp.value $TEMP"
|
echo "temp.value $TEMP"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user