Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
kepler
0002-change-data-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-change-data-path.patch of Package kepler
Index: kepler-0.7.11/pkg/collector/stats/utils.go =================================================================== --- kepler-0.7.11.orig/pkg/collector/stats/utils.go +++ kepler-0.7.11/pkg/collector/stats/utils.go @@ -36,7 +36,7 @@ import ( ) const ( - CPUModelDataPath = "/var/lib/kepler/data/cpus.yaml" + CPUModelDataPath = "/usr/share/kepler/data/cpus.yaml" CPUPmuNamePath = "/sys/devices/cpu/caps/pmu_name" CPUTopologyPath = "/sys/devices/system/cpu/cpu%d/topology/physical_package_id" ) Index: kepler-0.7.11/pkg/config/config.go =================================================================== --- kepler-0.7.11.orig/pkg/config/config.go +++ kepler-0.7.11/pkg/config/config.go @@ -141,9 +141,9 @@ var ( ) // return local path to power model weight -// e.g., /var/lib/kepler/data/acpi_AbsPowerModel.json +// e.g., /usr/share/kepler/data/model_weight/acpi_AbsPowerModel.json func GetDefaultPowerModelURL(modelOutputType, energySource string) string { - return fmt.Sprintf("/var/lib/kepler/data/%s_%sModel.json", energySource, modelOutputType) + return fmt.Sprintf("/usr/share/kepler/data/model_weight/%s_%sModel.json", energySource, modelOutputType) } func logBoolConfigs() {
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