summaryrefslogtreecommitdiff
path: root/evergreen/functions/run_diskstats.sh
diff options
context:
space:
mode:
Diffstat (limited to 'evergreen/functions/run_diskstats.sh')
-rwxr-xr-xevergreen/functions/run_diskstats.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/evergreen/functions/run_diskstats.sh b/evergreen/functions/run_diskstats.sh
index d79141cdb2c..d118f3ae0eb 100755
--- a/evergreen/functions/run_diskstats.sh
+++ b/evergreen/functions/run_diskstats.sh
@@ -3,20 +3,20 @@ set -o verbose
# On Windows we can use typeperf.exe to dump performance counters.
if [ "Windows_NT" = "$OS" ]; then
- typeperf -qx PhysicalDisk | grep Disk | grep -v _Total >disk_counters.txt
+ typeperf -qx PhysicalDisk | grep Disk | grep -v _Total > disk_counters.txt
typeperf -cf disk_counters.txt -si 5 -o mongo-diskstats
# Linux: iostat -t option for timestamp.
-elif iostat -tdmx >/dev/null 2>&1; then
- iostat -tdmx 5 >mongo-diskstats
+elif iostat -tdmx > /dev/null 2>&1; then
+ iostat -tdmx 5 > mongo-diskstats
# OSX: Simulate the iostat timestamp.
-elif iostat -d >/dev/null 2>&1; then
- iostat -d -w 5 | while IFS= read -r line; do printf '%s %s\n' "$(date +'%m/%d/%Y %H:%M:%S')" "$line" >>mongo-diskstats; done
+elif iostat -d > /dev/null 2>&1; then
+ iostat -d -w 5 | while IFS= read -r line; do printf '%s %s\n' "$(date +'%m/%d/%Y %H:%M:%S')" "$line" >> mongo-diskstats; done
# Check if vmstat -t is available.
-elif vmstat -td >/dev/null 2>&1; then
- vmstat -td 5 >mongo-diskstats
+elif vmstat -td > /dev/null 2>&1; then
+ vmstat -td 5 > mongo-diskstats
# Check if vmstat -T d is available.
-elif vmstat -T d >/dev/null 2>&1; then
- vmstat -T d 5 >mongo-diskstats
+elif vmstat -T d > /dev/null 2>&1; then
+ vmstat -T d 5 > mongo-diskstats
else
printf "Cannot collect mongo-diskstats on this platform\n"
fi