Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:glaubitz:branches:X11:Utilities
xosview
xosview-1.24-coretemp-labels.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xosview-1.24-coretemp-labels.patch of Package xosview
--- linux/coretemp.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- linux/coretemp.cc +++ linux/coretemp.cc 2023-07-14 08:19:30.840691395 +0000 @@ -126,12 +126,15 @@ void CoreTemp::findSysFiles( void ) { glob(name, GLOB_APPEND, NULL, &gbuf); for (i = 0; i < gbuf.gl_pathc; i++) { file.open(gbuf.gl_pathv[i]); - file >> dummy >> cpu; // "Core n" or "Physical id n" + file >> dummy; // "Core n" or "Package id n" file.close(); if ( strncmp(dummy.c_str(), "Core", 4) == 0 ) { strcpy(strrchr(gbuf.gl_pathv[i], '_'), "_input"); - if (_cpu < 0 || cpu == _cpu) - _cpus.push_back(gbuf.gl_pathv[i]); + if (_cpu < 0) + _cpus.push_back(gbuf.gl_pathv[i]); + else if (cpu == _cpu) + _cpus.push_back(gbuf.gl_pathv[i]); + cpu++; // The numbers seen in temp*_label might not continuously growing! } } globfree(&gbuf);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor