Skip to content

Commit

Permalink
Fix STACK memory
Browse files Browse the repository at this point in the history
  • Loading branch information
springhack committed Nov 28, 2016
1 parent 4ed0964 commit 3aa8d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ int main(int argc, char* argv[])
return 1;
}

printf("Daemon listern on socket: %s\n", argv[1]);

initcall();

init_socket(argv[1]);
Expand Down
2 changes: 1 addition & 1 deletion src/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ int ReadMemoryConsumption(pid_t pid) {
fclose(fp);
if (vmPeak)
vmSize = vmPeak;
return vmSize - vmExe - vmLib - vmStack;
return vmSize - vmExe - vmLib;
}

0 comments on commit 3aa8d68

Please sign in to comment.