Home
last modified time | relevance | path

Searched refs:sys_info (Results 1 – 7 of 7) sorted by relevance

/haiku/src/apps/pulse/
H A DPulseView.cpp81 system_info sys_info; in Init() local
82 get_system_info(&sys_info); in Init()
85 if (sys_info.cpu_count >= 2) { in Init()
86 cpu_menu_items = new BMenuItem *[sys_info.cpu_count]; in Init()
88 for (unsigned int x = 0; x < sys_info.cpu_count; x++) { in Init()
117 system_info sys_info; in Update() local
118 get_system_info(&sys_info); in Update()
121 cpu_info* cpuInfos = new cpu_info[sys_info.cpu_count]; in Update()
122 get_cpu_info(0, sys_info.cpu_count, cpuInfos); in Update()
125 for (unsigned int x = 0; x < sys_info.cpu_count; x++) { in Update()
[all …]
H A DMiniPulseView.cpp65 system_info sys_info; in Draw() local
66 get_system_info(&sys_info); in Draw()
67 if (sys_info.cpu_count <= 0) in Draw()
76 float bar_width = (bounds.Width()) / sys_info.cpu_count - 2; in Draw()
79 for (unsigned int x = 0; x < sys_info.cpu_count; x++) { in Draw()
131 system_info sys_info; in AttachedToWindow() local
132 get_system_info(&sys_info); in AttachedToWindow()
133 if (sys_info.cpu_count >= 2) { in AttachedToWindow()
134 for (unsigned int x = 0; x < sys_info.cpu_count; x++) in AttachedToWindow()
H A DPulseApp.cpp260 system_info sys_info; in LastEnabledCPU() local
261 get_system_info(&sys_info); in LastEnabledCPU()
262 if (sys_info.cpu_count == 1) in LastEnabledCPU()
265 for (unsigned int x = 0; x < sys_info.cpu_count; x++) { in LastEnabledCPU()
282 system_info sys_info; in GetMinimumViewWidth() local
283 get_system_info(&sys_info); in GetMinimumViewWidth()
284 return (sys_info.cpu_count * 2) + 1; in GetMinimumViewWidth()
H A DNormalPulseView.cpp102 system_info sys_info; in DetermineVendorAndProcessor() local
103 get_system_info(&sys_info); in DetermineVendorAndProcessor()
324 system_info sys_info; in AttachedToWindow() local
325 get_system_info(&sys_info); in AttachedToWindow()
326 if (sys_info.cpu_count >= 2) { in AttachedToWindow()
327 for (unsigned int x = 0; x < sys_info.cpu_count; x++) in AttachedToWindow()
338 system_info sys_info; in UpdateColors() local
339 get_system_info(&sys_info); in UpdateColors()
341 for (unsigned int x = 0; x < sys_info.cpu_count; x++) { in UpdateColors()
H A DDeskbarPulseView.cpp81 system_info sys_info; in AttachedToWindow() local
82 get_system_info(&sys_info); in AttachedToWindow()
83 if (sys_info.cpu_count >= 2) { in AttachedToWindow()
84 for (unsigned int x = 0; x < sys_info.cpu_count; x++) in AttachedToWindow()
H A DPrefs.cpp139 system_info sys_info; in GetNormalWindowHeight() local
140 get_system_info(&sys_info); in GetNormalWindowHeight()
143 + sys_info.cpu_count * ITEM_OFFSET; in GetNormalWindowHeight()
/haiku/src/apps/text_search/
H A DGrepper.cpp260 system_info sys_info; in _RunnerThread() local
261 get_system_info(&sys_info); in _RunnerThread()
262 snprintf(cpuCount, sizeof(cpuCount), "%" B_PRIu32, sys_info.cpu_count); in _RunnerThread()