Skip to content

Commit

Permalink
Merge pull request #3 from e7d/fix/main/various-fixes
Browse files Browse the repository at this point in the history
1.0.2 : Some fixes
  • Loading branch information
e7d authored Mar 28, 2024
2 parents a869aa3 + 58352bd commit a19eef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ ENV PROFILE "auto"
ENV IO "direct"
ENV DATA "random"
ENV SIZE 1G
ENV WARMUP 0
ENV WARMUP 1
ENV RUNTIME 5s
ENTRYPOINT [ "diskmark" ]
4 changes: 3 additions & 1 deletion diskmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ elif [[ "$FILESYSTEMPARTITION" == nvme* ]]; then
DRIVE=$(echo $FILESYSTEMPARTITION | rev | cut -c 3- | rev)
ISNVME=1
elif [[ "$FILESYSTEMPARTITION" == hd* ]] || [[ "$FILESYSTEMPARTITION" == sd* ]] || [[ "$FILESYSTEMPARTITION" == vd* ]]; then
DRIVE=$(echo $FILESYSTEMPARTITION | rev | cut -c 2- | rev)
DRIVE=$(echo $FILESYSTEMPARTITION | sed 's/[0-9]*$//')
elif [[ "$FILESYSTEMPARTITION" == md* ]]; then
DRIVE=$FILESYSTEMPARTITION
ISMDADM=1
Expand Down Expand Up @@ -280,6 +280,7 @@ case "$DATA" in
esac
SIZE="${SIZE:-1G}"
BYTESIZE=$(toBytes $SIZE)
WARMUP="${WARMUP:-0}"
if [ ! -z $LOOPS ]; then
LIMIT="Loops: $LOOPS"
LIMIT_OPTION="--loops=$LOOPS"
Expand All @@ -297,6 +298,7 @@ echo -e "$(color $BOLD $WHITE)Configuration:$(color $RESET)
- I/O: $IO
- Data: $DATA
- Size: $SIZE
- Warmup: $WARMUP
- $LIMIT
The benchmark is $(color $BOLD $WHITE)running$(color $RESET), please wait..."
Expand Down

0 comments on commit a19eef6

Please sign in to comment.