Commit b9ec86ab authored by Carla Guillen's avatar Carla Guillen
Browse files

small change when initializing vector. Changes in config file are reflected

parent 10efbb0e
...@@ -60,14 +60,14 @@ PerSystSqlOperator::~PerSystSqlOperator() { ...@@ -60,14 +60,14 @@ PerSystSqlOperator::~PerSystSqlOperator() {
PerSystSqlOperator::PerSystSqlOperator(const PerSystSqlOperator& other) : OperatorTemplate(other._name), JobOperatorTemplate(other._name){ PerSystSqlOperator::PerSystSqlOperator(const PerSystSqlOperator& other) : OperatorTemplate(other._name), JobOperatorTemplate(other._name){
copy(other); copy(other);
} }
PerSystSqlOperator& PerSystSqlOperator::operator=(const PerSystSqlOperator& other){ PerSystSqlOperator& PerSystSqlOperator::operator=(const PerSystSqlOperator& other){
OperatorTemplate::operator=(other); OperatorTemplate::operator=(other);
JobOperatorTemplate::operator=(other); JobOperatorTemplate::operator=(other);
copy(other); copy(other);
return *this; return *this;
} }
void PerSystSqlOperator::copy(const PerSystSqlOperator& other){ void PerSystSqlOperator::copy(const PerSystSqlOperator& other){
...@@ -94,7 +94,9 @@ void PerSystSqlOperator::copy(const PerSystSqlOperator& other){ ...@@ -94,7 +94,9 @@ void PerSystSqlOperator::copy(const PerSystSqlOperator& other){
} }
void PerSystSqlOperator::printConfig(LOG_LEVEL ll) { void PerSystSqlOperator::printConfig(LOG_LEVEL ll) {
LOG_VAR(ll) << "====================================";
LOG_VAR(ll) << "PerSystSQL Operator " << _name; LOG_VAR(ll) << "PerSystSQL Operator " << _name;
LOG_VAR(ll) << "====================================";
LOG_VAR(ll) << "backend=" << _backend; LOG_VAR(ll) << "backend=" << _backend;
LOG_VAR(ll) << "go_back_ms=" << _go_back_ns/1e6; LOG_VAR(ll) << "go_back_ms=" << _go_back_ns/1e6;
LOG_VAR(ll) << "_scaling_factor=" << _scaling_factor; LOG_VAR(ll) << "_scaling_factor=" << _scaling_factor;
...@@ -175,8 +177,7 @@ void PerSystSqlOperator::compute(U_Ptr unit, qeJobData& jobData) { ...@@ -175,8 +177,7 @@ void PerSystSqlOperator::compute(U_Ptr unit, qeJobData& jobData) {
return; return;
} }
std::vector<std::string> job_ids; std::vector<std::string> job_ids = {jobData.jobId};
job_ids.push_back(jobData.jobId);
std::map<std::string, std::string> job_map; std::map<std::string, std::string> job_map;
std::string table_suffix; std::string table_suffix;
......
...@@ -10,19 +10,20 @@ group msr_g1 { ...@@ -10,19 +10,20 @@ group msr_g1 {
interval 1000 interval 1000
; mqttprefix 01 ; mqttprefix 01
cpus 0-95 cpus 0-95
htVal 48
sensor Instructions { sensor Instructions {
mqttsuffix /instructions mqttsuffix /INSTRUCTIONS
metric 0x309 metric 0x309
} }
sensor Cycles { sensor Cycles {
mqttsuffix /cycles mqttsuffix /CLOCKS
metric 0x30A metric 0x30A
} }
sensor RefCycles { sensor RefCycles {
mqttsuffix /refcycles mqttsuffix /CLOCKS_REF
metric 0x30B metric 0x30B
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment