From 868ab80deae400ec3c3896b135cf5d68784638d0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 26 May 2014 09:37:05 +1000 Subject: [PATCH] mdcheck: don't pass the '+' to "date". It isn't needed, makes is harder to describe what --duration does. Signed-off-by: NeilBrown --- misc/mdcheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/mdcheck b/misc/mdcheck index 60d8501..33570b9 100644 --- a/misc/mdcheck +++ b/misc/mdcheck @@ -25,7 +25,7 @@ # # Options are: # --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 # # To support '--continue', arrays are identified by UUID and the 'sync_completed' @@ -57,7 +57,7 @@ do ;; --continue ) cont=yes ;; --duration ) shift; dur=$1 - endtime=$(date --date "+$dur" "+%s") + endtime=$(date --date "$dur" "+%s") ;; esac shift