stress2: Fix broken random number generation
This commit is contained in:
parent
026502d9ed
commit
bc49526a56
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user