kernel, libroot: Add more memory info in system_info
system_info now contains all information previously available only through __get_system_info_etc(B_MEMORY_INFO, ...).
This commit is contained in:
@@ -497,13 +497,7 @@ BlockCacheDataSource::Copy() const
|
||||
int64
|
||||
BlockCacheDataSource::NextValue(SystemInfo& info)
|
||||
{
|
||||
system_memory_info memoryInfo;
|
||||
status_t status = __get_system_info_etc(B_MEMORY_INFO, &memoryInfo,
|
||||
sizeof(system_memory_info));
|
||||
if (status != B_OK)
|
||||
return 0;
|
||||
|
||||
return memoryInfo.block_cache_memory;
|
||||
return info.BlockCacheMemory();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user