From c7671165c3255cacea5d60b42ecbb531f90545ff Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 18 Nov 2020 15:37:41 +0100 Subject: [PATCH] fix order test with epoch --- tests-ng/include-order.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests-ng/include-order.sh b/tests-ng/include-order.sh index b2a06df..3c261e4 100755 --- a/tests-ng/include-order.sh +++ b/tests-ng/include-order.sh @@ -116,9 +116,9 @@ for ((i=0;i<${attempts};i++)); do echo "second timestamp: `stat -c %y ${tmpd}/second`" echo "third timestamp: `stat -c %y ${tmpd}/third`" - ts_first=`date "+%S%N" -d "$(stat -c %y ${tmpd}/first)"` - ts_second=`date "+%S%N" -d "$(stat -c %y ${tmpd}/second)"` - ts_third=`date "+%S%N" -d "$(stat -c %y ${tmpd}/third)"` + ts_first=`date "+%s" -d "$(stat -c %y ${tmpd}/first)"` + ts_second=`date "+%s" -d "$(stat -c %y ${tmpd}/second)"` + ts_third=`date "+%s" -d "$(stat -c %y ${tmpd}/third)"` #echo "first ts: ${ts_first}" #echo "second ts: ${ts_second}"