summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/evergreen.yml8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 2d922c07703..7a3b7edacf0 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -221,13 +221,7 @@ functions:
iostat -tdmx 5 > mongo-diskstats
# OSX: Simulate the iostat timestamp.
elif iostat -d > /dev/null 2>&1; then
- while [ 1 ]
- do
- date +'%m/%d/%Y %I:%M:%S %p' >> mongo-diskstats
- iostat -d >> mongo-diskstats
- printf "\n" >> mongo-diskstats
- sleep 5
- done
+ 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