Skip to content

Commit fba1c95

Browse files
author
Victor Bouvier-Deleau
committed
Fix scrub repaired bytes parsing
1 parent fcc3f49 commit fba1c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zpool_report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ for pool_name in ${ZFS_POOLS}; do
9494
[[ "${write_errors}" != "0" ]] ||
9595
[[ "${checksum_errors}" != "0" ]] ||
9696
[[ "${pool_used_capacity}" -ge "${ZFS_POOL_CAPACITY_WARNING}" ]] ||
97-
[[ "${scrub_repaired_bytes}" != "0" ]] ||
97+
[[ "${scrub_repaired_bytes}" != "0B" ]] ||
9898
[[ "$(echo "${scrub_age}" | awk '{print int($1)}')" -ge "${SCRUB_AGE_WARNING}" ]]; then
9999
ui_symbol="${UI_WARNING_SYMBOL}"
100100
else

0 commit comments

Comments
 (0)