mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Hotspare Count should not go below zero
This commit is contained in:
@@ -80,6 +80,9 @@ if [ -d /dev/md ] ; then
|
||||
RAID_MISSING_DEVICES=$RAID_MISSING_DEVICES']'
|
||||
|
||||
let "RAID_HOTSPARE_COUNT=ALL_DEVICE_COUNT-RAID_DISC_COUNT"
|
||||
if [ $RAID_HOTSPARE_COUNT -lt 0 ]; then
|
||||
RAID_HOTSPARE_COUNT=0
|
||||
fi
|
||||
|
||||
ARRAY_DATA='{'\
|
||||
'"name":"'$RAID_NAME\
|
||||
|
||||
Reference in New Issue
Block a user