release v1.9, fix codacy issues
This commit is contained in:
parent
566cd372af
commit
9471abc35f
|
@ -120,7 +120,7 @@ while getopts $options opt; do
|
||||||
* ) echo 1>&2 "Unimplemented option: -$OPTARG"; usage; exit 1;;
|
* ) echo 1>&2 "Unimplemented option: -$OPTARG"; usage; exit 1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $(($OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
# check for mandatory options
|
# check for mandatory options
|
||||||
if [ -z "$outputdir" ]; then
|
if [ -z "$outputdir" ]; then
|
||||||
|
@ -346,11 +346,11 @@ echo "starting time and run time of each step:"
|
||||||
checkpoints=${#checkpointdate[@]}
|
checkpoints=${#checkpointdate[@]}
|
||||||
checkpointdate[$((checkpoints + 1))]=$(date +%s)
|
checkpointdate[$((checkpoints + 1))]=$(date +%s)
|
||||||
for i in $(seq 1 $checkpoints); do
|
for i in $(seq 1 $checkpoints); do
|
||||||
diffsec="$((${checkpointdate[$(($i + 1))]} - ${checkpointdate[$i]}))"
|
diffsec="$((${checkpointdate[$((i + 1))]} - ${checkpointdate[$i]}))"
|
||||||
printf "%35s $(date --date=@${checkpointdate[$i]}) ($(date -d@${diffsec} -u +%H:%M:%S))\n" "${checkpointname[$i]}"
|
printf "%35s $(date --date=@${checkpointdate[$i]}) ($(date -d@${diffsec} -u +%H:%M:%S))\n" "${checkpointname[$i]}"
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
diffsec="$((${checkpointdate[$checkpoints]} - ${checkpointdate[1]}))"
|
diffsec="$((checkpointdate[$checkpoints] - checkpointdate[1]))"
|
||||||
echo "total run time: $(date -d@${diffsec} -u +%H:%M:%S) (hh:mm:ss)"
|
echo "total run time: $(date -d@${diffsec} -u +%H:%M:%S) (hh:mm:ss)"
|
||||||
|
|
||||||
# calculate and print memory load
|
# calculate and print memory load
|
||||||
|
@ -358,4 +358,4 @@ max=${memoryload[0]}
|
||||||
for n in "${memoryload[@]}" ; do
|
for n in "${memoryload[@]}" ; do
|
||||||
((n > max)) && max=$n
|
((n > max)) && max=$n
|
||||||
done
|
done
|
||||||
echo "highest memory load: $(($max / 1024)) MB"
|
echo "highest memory load: $((max / 1024)) MB"
|
||||||
|
|
|
@ -145,7 +145,7 @@ while getopts $options opt; do
|
||||||
* ) echo 1>&2 "Unimplemented option: -$OPTARG"; usage; exit 1;;
|
* ) echo 1>&2 "Unimplemented option: -$OPTARG"; usage; exit 1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $(($OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
# check for mandatory options
|
# check for mandatory options
|
||||||
if [ -z "$outputdir" ]; then
|
if [ -z "$outputdir" ]; then
|
||||||
|
@ -376,7 +376,7 @@ for i in $(seq 1 $checkpoints); do
|
||||||
printf "%35s $(date --date=@${checkpointdate[$i]}) ($(date -d@${diffsec} -u +%H:%M:%S))\n" "${checkpointname[$i]}"
|
printf "%35s $(date --date=@${checkpointdate[$i]}) ($(date -d@${diffsec} -u +%H:%M:%S))\n" "${checkpointname[$i]}"
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
diffsec="$((${checkpointdate[$checkpoints]} - ${checkpointdate[1]}))"
|
diffsec="$((checkpointdate[$checkpoints] - checkpointdate[1]))"
|
||||||
echo "total run time: $(date -d@${diffsec} -u +%H:%M:%S) (hh:mm:ss)"
|
echo "total run time: $(date -d@${diffsec} -u +%H:%M:%S) (hh:mm:ss)"
|
||||||
|
|
||||||
# calculate and print memory load
|
# calculate and print memory load
|
||||||
|
|
Loading…
Reference in New Issue