From: adilger Date: Fri, 13 Jun 2003 20:07:38 +0000 (+0000) Subject: Grrr. Print the current time in seconds, instead of "s". X-Git-Tag: v1_7_100~1^97~34 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=62580c09ed0a719d0c1596fad50c412d87c73074;p=fs%2Flustre-release.git Grrr. Print the current time in seconds, instead of "s". --- diff --git a/lustre/tests/runvmstat b/lustre/tests/runvmstat index 3ce6810..b04d84c 100755 --- 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