diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/memchecker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memchecker.cc b/src/memchecker.cc index f444f85..ec0c9df 100644 --- a/src/memchecker.cc +++ b/src/memchecker.cc @@ -60,7 +60,7 @@ uint64_t MemChecker::calcFreeMemory() const #if DG_PLATFORM == DG_PLATFORM_LINUX struct sysinfo sys_info; sysinfo(&sys_info); - free_memory = sys_info.freeram * sys_info.mem_unit; + free_memory = (uint64_t)sys_info.freeram * (uint64_t)sys_info.mem_unit; #elif DG_PLATFORM == DG_PLATFORM_WINDOWS MEMORYSTATUSEX status; status.dwLength = sizeof(status); |