Skip to content

Commit

Permalink
Fix scrub repaired bytes parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Bouvier-Deleau committed Nov 2, 2020
1 parent fcc3f49 commit fba1c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zpool_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ for pool_name in ${ZFS_POOLS}; do
[[ "${write_errors}" != "0" ]] ||
[[ "${checksum_errors}" != "0" ]] ||
[[ "${pool_used_capacity}" -ge "${ZFS_POOL_CAPACITY_WARNING}" ]] ||
[[ "${scrub_repaired_bytes}" != "0" ]] ||
[[ "${scrub_repaired_bytes}" != "0B" ]] ||
[[ "$(echo "${scrub_age}" | awk '{print int($1)}')" -ge "${SCRUB_AGE_WARNING}" ]]; then
ui_symbol="${UI_WARNING_SYMBOL}"
else
Expand Down

0 comments on commit fba1c95

Please sign in to comment.