linux compile resolves #235
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
1cc9df8804
commit
b87ec3febf
|
|
@ -81,7 +81,7 @@ systemRunTime()
|
||||||
size_t
|
size_t
|
||||||
memoryUsage()
|
memoryUsage()
|
||||||
{
|
{
|
||||||
string proc_filename;
|
std::string proc_filename;
|
||||||
stringPrint(proc_filename, "/proc/%d/status", getpid());
|
stringPrint(proc_filename, "/proc/%d/status", getpid());
|
||||||
size_t memory = 0;
|
size_t memory = 0;
|
||||||
FILE *status = fopen(proc_filename.c_str(), "r");
|
FILE *status = fopen(proc_filename.c_str(), "r");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue