Ran into an issue where Wear Leveling Count showed ((100 - 8)) instead of 92. Found the issue to be from this section of the script (1862-1869)
local wearLeveling
if [ "${rpm:-"0"}" = "0" ]; then
local percentUsed="$(jq -Mre '.scsi_percentage_used_endurance_indicator | values' <<< "${sasInfoSmrt}")"
if [ ! -z "${percentUsed}" ]; then
wearLeveling="((100 - ${percentUsed:-0}))"
fi
rpm="SSD "
fi
Changed line 1866 to the following and that seemed to fix it.
wearLeveling=$((100 - ${percentUsed:-0}))
Ran into an issue where Wear Leveling Count showed ((100 - 8)) instead of 92. Found the issue to be from this section of the script (1862-1869)
Changed line 1866 to the following and that seemed to fix it.
wearLeveling=$((100 - ${percentUsed:-0}))
Thanks for all of your work!