Whamcloud - gitweb
Grrr. Print the current time in seconds, instead of "s".
authoradilger <adilger>
Fri, 13 Jun 2003 20:07:38 +0000 (20:07 +0000)
committeradilger <adilger>
Fri, 13 Jun 2003 20:07:38 +0000 (20:07 +0000)
lustre/tests/runvmstat

index 3ce6810..b04d84c 100755 (executable)
@@ -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