From b9b7c9328e6f37db1de9a214d414bd2aa02d391e Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Thu, 26 Jan 2023 06:57:23 +0800 Subject: [PATCH] tools: fix the CSV format error and add build target 'tools' in Makefile Signed-off-by: Benjamin Wang --- Makefile | 4 ++++ tools/rw-heatmaps/rw-benchmark.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 6208637b8..195573aab 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,10 @@ build: ./bin/etcdctl version ./bin/etcdutl version +.PHONY: tools +tools: + GO_BUILD_FLAGS="${GO_BUILD_FLAGS} -v" ./scripts/build_tools.sh + # Tests GO_TEST_FLAGS?= diff --git a/tools/rw-heatmaps/rw-benchmark.sh b/tools/rw-heatmaps/rw-benchmark.sh index abd63db1a..66d89cdd8 100755 --- a/tools/rw-heatmaps/rw-benchmark.sh +++ b/tools/rw-heatmaps/rw-benchmark.sh @@ -198,6 +198,7 @@ for RATIO_STR in ${RATIO_LIST}; do fi LINE="${LINE},${RD_QPS}:${WR_QPS}" done + LINE="${LINE}," END=$(date +%s) DIFF=$((${END} - ${START})) echo "took ${DIFF} seconds"