Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33e0b0
)
Grrr. Print the current time in seconds, instead of "s".
author
adilger
<adilger>
Fri, 13 Jun 2003 20:07:38 +0000
(20:07 +0000)
committer
adilger
<adilger>
Fri, 13 Jun 2003 20:07:38 +0000
(20:07 +0000)
lustre/tests/runvmstat
patch
|
blob
|
history
diff --git
a/lustre/tests/runvmstat
b/lustre/tests/runvmstat
index
3ce6810
..
b04d84c
100755
(executable)
--- a/
lustre/tests/runvmstat
+++ b/
lustre/tests/runvmstat
@@
-1,5
+1,6
@@
#!/bin/sh
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