1
0
mirror of https://github.com/cmur2/munin-pcsensor.git synced 2024-12-22 02:54:26 +01:00

More delay before first retry and retry two times since some systems aren't that fast

This commit is contained in:
cn 2015-01-01 20:15:21 +01:00
parent abc7c11732
commit e70d6b59fd

View File

@ -20,8 +20,12 @@ if [ "${1}" = "config" ]; then
else
TEMP=`${PCSENSOR} -cm`
if [[ $? != 0 ]]; then
sleep 1
sleep 2
TEMP=`${PCSENSOR} -cm`
if [[ $? != 0 ]]; then
sleep 6
TEMP=`${PCSENSOR} -cm`
fi
fi
echo "temp.value $TEMP"
fi