Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- ext3_ext_new_extent_cb() unmaps buffer_heads in order to prevent
[fs/lustre-release.git]
/
lustre
/
tests
/
runvmstat
diff --git
a/lustre/tests/runvmstat
b/lustre/tests/runvmstat
index
3ce6810
..
d8e887a
100755
(executable)
--- a/
lustre/tests/runvmstat
+++ b/
lustre/tests/runvmstat
@@
-1,5
+1,18
@@
#!/bin/sh
#!/bin/sh
+null() {
+ :
+}
+
+if [ "$1" == "-q" ]; then
+ echo "echo off"
+ ECHO="null"
+ shift
+else
+ echo "echo on"
+ ECHO=echo
+fi
vmstat 1 | while read LINE ; do
vmstat 1 | while read LINE ; do
- echo "`date +s`: $LINE"
- [ "$1" ] && echo "`date +s`: $LINE" >> $1
+ LINE="`date +%s`: $LINE"
+ $ECHO "$LINE"
+ [ "$1" ] && echo "$LINE" >> $1
done
done