fhandler_proc.cc: Only request group relation information
* fhandler_proc.cc (format_proc_cpuinfo): Only fetch group relations, we don't need anything else. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7f3efa3b65
commit
9074b9b8ad
|
@ -1,3 +1,8 @@
|
|||
2015-08-26 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_proc.cc (format_proc_cpuinfo): Only fetch group relations,
|
||||
we don't need anything else.
|
||||
|
||||
2015-08-25 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* winsup.h (_WIN32_WINNT): Set to 0x0a00 for Windows 10.
|
||||
|
|
|
@ -641,7 +641,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
|||
PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX lpi =
|
||||
(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX) tp.c_get ();
|
||||
lpi_size = NT_MAX_PATH;
|
||||
if (!GetLogicalProcessorInformationEx (RelationAll, lpi, &lpi_size))
|
||||
if (!GetLogicalProcessorInformationEx (RelationGroup, lpi, &lpi_size))
|
||||
lpi = NULL;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue