View | Details | Raw Unified | Return to bug 217622
Collapse All | Expand All

(-)/tmp/800.scrub-zfs (-1 / +1 lines)
Lines 71-77 Link Here
71
71
72
		# Now minus last scrub (both in seconds) converted to days.
72
		# Now minus last scrub (both in seconds) converted to days.
73
		_scrub_diff=$(expr -e \( $(date +%s) - \
73
		_scrub_diff=$(expr -e \( $(date +%s) - \
74
		    $(date -j -f %F.%T ${_last_scrub} +%s) \) / 60 / 60 / 24)
74
		    $(date -j -v -70M -f %F.%T ${_last_scrub} +%s) \) / 60 / 60 / 24)
75
		if [ ${_scrub_diff} -lt ${_pool_threshold} ]; then
75
		if [ ${_scrub_diff} -lt ${_pool_threshold} ]; then
76
			echo "   skipping scrubbing of pool '${pool}':"
76
			echo "   skipping scrubbing of pool '${pool}':"
77
			echo "      last scrubbing is ${_scrub_diff} days ago, threshold is set to ${_pool_threshold} days"
77
			echo "      last scrubbing is ${_scrub_diff} days ago, threshold is set to ${_pool_threshold} days"

Return to bug 217622