mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Proper printf type for DWORDLONG on cygwin.
This commit is contained in:
parent
ee718f18d9
commit
1733961885
@ -349,7 +349,11 @@ static const char* GetHostInfo()
|
||||
MEMORYSTATUSEX statex;
|
||||
statex.dwLength = sizeof( statex );
|
||||
GlobalMemoryStatusEx( &statex );
|
||||
# ifdef _MSC_VER
|
||||
ptr += sprintf( ptr, "RAM: %I64u MB\n", statex.ullTotalPhys / 1024 / 1024 );
|
||||
# else
|
||||
ptr += sprintf( ptr, "RAM: %llu MB\n", statex.ullTotalPhys / 1024 / 1024 );
|
||||
# endif
|
||||
#elif defined __linux__
|
||||
struct sysinfo sysInfo;
|
||||
sysinfo( &sysInfo );
|
||||
|
Loading…
Reference in New Issue
Block a user