aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2022-06-29 10:28:18 +0000
committerPeter Holm <pho@FreeBSD.org>2022-06-29 10:28:18 +0000
commitbc49526a561c4ed8dd2678fbaed44cbd97142753 (patch)
treeb5c24876d514b384b97502b59fbcfbdf9aa27be2 /tools
parent026502d9edd84c0e18110c4c35d03852a1146c8e (diff)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test/stress2/misc/quota7.sh2
-rwxr-xr-xtools/test/stress2/misc/quota8.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/test/stress2/misc/quota7.sh b/tools/test/stress2/misc/quota7.sh
index 2e2fe6b7a52d..fa448e1f241d 100755
--- a/tools/test/stress2/misc/quota7.sh
+++ b/tools/test/stress2/misc/quota7.sh
@@ -66,7 +66,7 @@ for i in `jot 20`; do
mksnap_ffs $mntpoint $mntpoint/.snap/snap$i
sleep 1
done
-i=$(($(date '+%S') % 20 + 1))
+i=$(($(date '+%s') % 20 + 1))
echo "rm -f $mntpoint/.snap/snap$i"
rm -f $mntpoint/.snap/snap$i
wait
diff --git a/tools/test/stress2/misc/quota8.sh b/tools/test/stress2/misc/quota8.sh
index 148c2d19ce65..b5c8a367d88c 100755
--- a/tools/test/stress2/misc/quota8.sh
+++ b/tools/test/stress2/misc/quota8.sh
@@ -74,7 +74,7 @@ for i in `jot 20`; do
sleep 1
done
# Remove random snapshot file
-i=$((`date +%S` % 20 + 1))
+i=$((`date +%s` % 20 + 1))
echo "rm -f $mntpoint/.snap/snap$i"
rm -f $mntpoint/.snap/snap$i
wait