Skip to content

Commit

Permalink
fix mac compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Mar 30, 2020
1 parent d684600 commit 606c7e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NodeServer/NodeImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ int NodeImp::getNodeLoad(const string& application, const string& serverName, in

if (pid > 0)
{
memset(buf, 0, sizeof(buf));
// memset(buf, 0, sizeof(buf));
cmd = "top -b -n 1 -o '%CPU' -o '%MEM' -H -p " + TC_Common::tostr(pid);
// FILE* fpTop2 = popen(cmd.c_str(), "r");
// fread(buf, sizeof(char), sizeof(buf)-1, fpTop2);
Expand Down
2 changes: 2 additions & 0 deletions tars-client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include_directories(${CMAKE_SOURCE_DIR}/tarscpp/servant/protocol)

set(MODULE tars-client)

include_directories(.)

aux_source_directory(. DIR_SRC)

add_executable(${MODULE} ${DIR_SRC})
Expand Down

0 comments on commit 606c7e3

Please sign in to comment.