Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
schedtop
schedtop-boost_filesystem_changes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File schedtop-boost_filesystem_changes.patch of Package schedtop
--- schedtop.cc.orig +++ schedtop.cc @@ -267,21 +267,21 @@ void ProcSnapshot(StatMap &smap) fs::directory_iterator end; for (fs::directory_iterator iter("/proc"); iter != end; ++iter) { - std::string path(iter->string() + "/schedstat"); + std::string path(iter->path().string() + "/schedstat"); if (fs::exists(path)) { std::ifstream is(path.c_str()); if (!is.is_open()) throw std::runtime_error("could not open " + path); - Importer importer(smap, is, iter->string() + "/"); + Importer importer(smap, is, iter->path().string() + "/"); importer += "sched_info.cpu_time"; importer += "sched_info.run_delay"; importer += "sched_info.pcount"; } - path = iter->string() + "/sched"; + path = iter->path().string() + "/sched"; if (fs::exists(path)) { std::ifstream is(path.c_str()); @@ -312,7 +312,7 @@ void ProcSnapshot(StatMap &smap) lis >> tmp; Importer importer(smap, lis, - iter->string() + "/"); + iter->path().string() + "/"); importer += type; } --- Makefile.orig +++ Makefile @@ -3,6 +3,7 @@ CXXFLAGS += -g -O0 ARCH=$(shell uname -m) OBJDIR ?= obj/$(ARCH) LIBRARIES += -lboost_regex +LIBRARIES += -lboost_system LIBRARIES += -lboost_program_options LIBRARIES += -lboost_filesystem LIBRARIES += -lncurses
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