fix: Add readme and fix shellcheck
This commit is contained in:
parent
41d10de2de
commit
c9ac620b33
2 changed files with 12 additions and 1 deletions
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Not Crystaldiskmark
|
||||||
|
|
||||||
|
I wanted something to compare disks on Linux/Mac and enjoy
|
||||||
|
CDM as a great generalized baseline. This uses fio to reproduce
|
||||||
|
the same results in Linux. The simple curses library is included
|
||||||
|
to produce a cleaner output, but is not required for use.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Defaults to running in current directory if not specified
|
||||||
|
ncdm.sh /mnt/bla
|
||||||
|
```
|
2
ncdm.sh
2
ncdm.sh
|
@ -8,7 +8,7 @@ command -v jq >/dev/null 2>&1 || { echo >&2 "Package 'jq' not installed. Abortin
|
||||||
LOOPS=1 # How many times to run each test
|
LOOPS=1 # How many times to run each test
|
||||||
SIZE=1024m # File size
|
SIZE=1024m # File size
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z "$1" ]; then
|
||||||
TARGET=$HOME
|
TARGET=$HOME
|
||||||
echo "Defaulting to $TARGET for testing"
|
echo "Defaulting to $TARGET for testing"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue