linux compile resolves #235

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-04-12 10:53:34 -07:00
parent 1cc9df8804
commit b87ec3febf
1 changed files with 1 additions and 1 deletions

View File

@ -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");