Skip to content

Commit

Permalink
fix openjdk benchmark no work (sofastack#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmonkey authored Oct 10, 2020
1 parent c0daf8d commit 291a519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jraft-example/bin/client_benchmark_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CLASSPATH=$(echo $BASE_DIR/lib/*.jar | tr ' ' ':')
# get java version
JAVA="$JAVA_HOME/bin/java"

JAVA_VERSION=$($JAVA -version 2>&1 | awk -F\" '/java version/{print $2}')
JAVA_VERSION=$($JAVA -version 2>&1 | awk -F\" '/version/{print $2}')
echo "java version:$JAVA_VERSION path:$JAVA"

MEMORY=$(cat /proc/meminfo |grep 'MemTotal' |awk -F : '{print $2}' |awk '{print $1}' |sed 's/^[ \t]*//g')
Expand Down
2 changes: 1 addition & 1 deletion jraft-example/bin/server_benchmark_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CLASSPATH=$(echo $BASE_DIR/lib/*.jar | tr ' ' ':')
# get java version
JAVA="$JAVA_HOME/bin/java"

JAVA_VERSION=$($JAVA -version 2>&1 | awk -F\" '/java version/{print $2}')
JAVA_VERSION=$($JAVA -version 2>&1 | awk -F\" '/version/{print $2}')
echo "java version:$JAVA_VERSION path:$JAVA"

MEMORY=$(cat /proc/meminfo |grep 'MemTotal' |awk -F : '{print $2}' |awk '{print $1}' |sed 's/^[ \t]*//g')
Expand Down

0 comments on commit 291a519

Please sign in to comment.