Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:Update
xosview
xosview-1.21-lmstemp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xosview-1.21-lmstemp.patch of Package xosview
--- linux/MeterMaker.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- linux/MeterMaker.cc +++ linux/MeterMaker.cc 2020-03-23 09:48:53.634728539 +0000 @@ -213,11 +213,14 @@ void MeterMaker::makeMeters(void){ const char *tempfile, *highfile, *lowfile, *name, *label; snprintf( caption, 16, "ACT/HIGH/%s", _xos->getResourceOrUseDefault("lmstempHighest", "100") ); - for (int i = 1 ; ; i++) { + for (int i = 1 ; i < 1000 ; i++) { snprintf(s, 16, "lmstemp%d", i); - tempfile = _xos->getResourceOrUseDefault(s, NULL); + tempfile = (char*)_xos->getResourceOrUseDefault(s, NULL); if (!tempfile || !*tempfile) break; + std::ifstream stats(tempfile); + if (!stats) + continue; snprintf(s, 16, "lmshigh%d", i); highfile = _xos->getResourceOrUseDefault(s, NULL); snprintf(s, 16, "lmslow%d", i);
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