You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/11/12 08:07:11 UTC

[iotdb] branch fix_win_bat created (now 63280d5)

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

haonan pushed a change to branch fix_win_bat
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 63280d5  fix get total memory size

This branch includes the following new commits:

     new 63280d5  fix get total memory size

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: fix get total memory size

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 63280d55bce514fbe2d67d3864730dad5b9d596d
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
 )