diff --git a/xdoc/sample/go.tpl b/xdoc/sample/go.tpl deleted file mode 100644 index 6953cf53f2ddf4b199e238011932deb77f1e9d1f..0000000000000000000000000000000000000000 --- a/xdoc/sample/go.tpl +++ /dev/null @@ -1,21 +0,0 @@ -package main - -/* -<</dev/null | grep 'time=' | sed 's/.*time=\([.0-9]*\) ms/\1/g' | awk -F. '{print $1}'` + echo $tm + + if [[ $tm -gt $timeout ]] ; then // timeout + ((count = 1)) // break + fi + ((count = count - 1)) +done + +if [ ! -n "$tm" ]; then + echo 'Unknown' +elif [[ $tm -gt $timeout ]]; then + echo 'Timeout' +else + echo 'Work' +fi \ No newline at end of file