summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-26 09:37:05 +1000
committerNeilBrown <neilb@suse.de>2014-05-26 09:37:05 +1000
commit868ab80deae400ec3c3896b135cf5d68784638d0 (patch)
treee09a6315f1507d1e22973b884688cc91cd84a186
parent20d430ca81320face2a7753e4969cbda8e559755 (diff)
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>
-rw-r--r--misc/mdcheck4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/mdcheck b/misc/mdcheck
index 60d8501f..33570b97 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