mdcheck: don't pass the '+' to "date".

It isn't needed, makes is harder to describe what --duration does.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2014-05-26 09:37:05 +10:00
parent 20d430ca81
commit 868ab80dea
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
# #
# Options are: # Options are:
# --continue Don't start new checks, only continue old ones. # --continue Don't start new checks, only continue old ones.
# --duration This is passed to "date --date=+$duration" to find out # --duration This is passed to "date --date=$duration" to find out
# when to finish # when to finish
# #
# To support '--continue', arrays are identified by UUID and the 'sync_completed' # To support '--continue', arrays are identified by UUID and the 'sync_completed'
@ -57,7 +57,7 @@ do
;; ;;
--continue ) cont=yes ;; --continue ) cont=yes ;;
--duration ) shift; dur=$1 --duration ) shift; dur=$1
endtime=$(date --date "+$dur" "+%s") endtime=$(date --date "$dur" "+%s")
;; ;;
esac esac
shift shift