diff options
-rwxr-xr-x | hellyeah.command | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hellyeah.command b/hellyeah.command index 2b8c692..1d9b339 100755 --- a/hellyeah.command +++ b/hellyeah.command @@ -4,7 +4,6 @@ # @author Filipp Lepalaan <filipp@mcare.fi> MYDIR=/private/tmp/_hellyeah - CORES=$(sysctl hw.logicalcpu_max | cut -d : -f 2 | sed 's/ //') for (( i = 0; i < ${CORES}; i++ )); do @@ -15,6 +14,8 @@ if [[ ! -d "${MYDIR}" ]]; then mkdir "${MYDIR}" fi +trap "killall yes; rm ${MYDIR}; echo Killed; exit 255" SIGINT SIGTERM + while true; do for k in 10 100 1000 10000; do BLOCKS=$(($k*1024/512)) |