You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/13 00:54:32 UTC

[iotdb] branch master updated: fix get total memory size

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new b762149  fix get total memory size
b762149 is described below

commit b7621490a52810eb44a825d23d2ffda88b2b92ab
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Nov 12 16:06:35 2020 +0800

    fix get total memory size
---
 server/src/assembly/resources/conf/iotdb-env.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/assembly/resources/conf/iotdb-env.bat b/server/src/assembly/resources/conf/iotdb-env.bat
index dcd93b3..73f03ac 100644
--- a/server/src/assembly/resources/conf/iotdb-env.bat
+++ b/server/src/assembly/resources/conf/iotdb-env.bat
@@ -55,7 +55,7 @@ set as=%system_cpu_cores%
 if ["%system_cpu_cores%"] LSS ["1"] set system_cpu_cores="1"
 
 set liner=0
-for /f  %%b in ('wmic memorychip get capacity') do (
+for /f  %%b in ('wmic ComputerSystem get TotalPhysicalMemory') do (
 	set /a liner+=1
 	if !liner!==2 set system_memory=%%b
 )