From ec772dfe5694aed1ca6a2100db8363e2dd7ba362 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Thu, 24 Aug 2023 15:35:44 +0800 Subject: [PATCH] Update README.md --- tools/ncpu/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/ncpu/README.md b/tools/ncpu/README.md index 7edda5328..f15db0ee0 100644 --- a/tools/ncpu/README.md +++ b/tools/ncpu/README.md @@ -16,6 +16,15 @@ $ ncpu This will return an integer representing the number of available CPU cores. +## install ncpu + +**User go module:** + +```bash +$ go install github.com/OpenIMSDK/Open-IM-Server/tools/ncpu@latest +$ ncpu +``` + ### Example: Let's say you're compiling a project using `make`. To utilize all the CPU cores for the compilation process, you can use: @@ -44,4 +53,4 @@ If you have any suggestions, bug reports, or wish to contribute to the developme ## License -`ncpu` is released under the [LICENSE_NAME](LINK_TO_LICENSE). Please refer to the license file for more details. \ No newline at end of file +`ncpu` is released under the [LICENSE_NAME](LINK_TO_LICENSE). Please refer to the license file for more details.