"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/platform/linux/XMemUtils.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

XMemUtils.cpp  (xbmc-18.7.1-Leia):XMemUtils.cpp  (xbmc-18.8-Leia)
skipping to change at line 170 skipping to change at line 170
info.freeswap = val/4; info.freeswap = val/4;
else if (strncmp("HighTotal:", name, 10) == 0) else if (strncmp("HighTotal:", name, 10) == 0)
info.totalhigh = val/4; info.totalhigh = val/4;
else if (strncmp("HighFree:", name, 9) == 0) else if (strncmp("HighFree:", name, 9) == 0)
info.freehigh = val/4; info.freehigh = val/4;
} }
rewind(procMeminfoFP); rewind(procMeminfoFP);
fflush(procMeminfoFP); fflush(procMeminfoFP);
} }
lpBuffer->dwLength = sizeof(MEMORYSTATUSEX); lpBuffer->dwLength = sizeof(MEMORYSTATUSEX);
lpBuffer->ullAvailPageFile = (info.freeswap * info.mem_unit); lpBuffer->ullAvailPageFile = (static_cast<uint64_t>(info.freeswap) * info.mem_
lpBuffer->ullAvailPhys = ((info.freeram + info.bufferram) * info.mem_unit) unit);
; lpBuffer->ullAvailPhys = (static_cast<uint64_t>(info.freeram + info.buffer
lpBuffer->ullAvailVirtual = ((info.freeram + info.bufferram) * info.mem_unit) ram) * info.mem_unit);
; lpBuffer->ullAvailVirtual = (static_cast<uint64_t>(info.freeram + info.buffer
lpBuffer->ullTotalPhys = (info.totalram * info.mem_unit); ram) * info.mem_unit);
lpBuffer->ullTotalVirtual = (info.totalram * info.mem_unit); lpBuffer->ullTotalPhys = (static_cast<uint64_t>(info.totalram) * info.mem_
unit);
lpBuffer->ullTotalVirtual = (static_cast<uint64_t>(info.totalram) * info.mem_
unit);
#endif #endif
} }
 End of changes. 1 change blocks. 
7 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)