Changeset 52baaa4 in tol
- Timestamp:
- May 31, 2010, 11:33:23 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- df92a87
- Parents:
- 633c9d1
- File:
-
- 1 edited
-
tol/bbasic/sys.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/sys.cpp
r633c9d1 r52baaa4 31 31 #ifdef UNIX 32 32 # include <errno.h> 33 # include <sys/resource.h> 33 34 #else // WINDOWS 34 35 # include <windows.h> … … 167 168 //-------------------------------------------------------------------- 168 169 { 170 #if defined(WIN32) 169 171 MEMORYSTATUSEX statex; 170 172 statex.dwLength = sizeof (statex); 171 173 GlobalMemoryStatusEx (&statex); 172 174 return((double)statex.ullAvailVirtual); 175 #else 176 int who = RUSAGE_SELF; 177 struct rusage usage; 178 int ret; 179 180 ret=getrusage(who,&usage); 181 182 return usage.ru_maxrss; 183 #endif 173 184 }; 174 185
Note: See TracChangeset
for help on using the changeset viewer.
