In January 2021 we will introduce a 10 GB quota for project repositories. Higher limits for individual projects will be available on request. Please see https://doku.lrz.de/display/PUBLIC/GitLab for more information.

Commit 15bd792a authored by Carla Guillen's avatar Carla Guillen

small bugfix with formulas

parent 01ce2ef0
......@@ -93,7 +93,7 @@ bool calculateSP_TO_TOTAL_RATIO(reading_t &scalarDB, reading_t & scalarSP,
reading_t & result, double scaling_factor){
auto single_precision = packedSP128.value * 4 + packedSP256.value * 8
+ packedSP512.value * 16 + scalarSP.value;
double total = single_precision = packedDP128.value * 2 + packedDP256.value * 4 + packedDP512.value * 8 + scalarDB.value;
double total = single_precision + packedDP128.value * 2 + packedDP256.value * 4 + packedDP512.value * 8 + scalarDB.value;
if(total > 0){
result.value = single_precision/(scaling_factor * total);
return getTimestampFromReadings(result.timestamp, scalarDB, scalarSP,
......
......@@ -208,7 +208,7 @@ void SMUCNGPerfOperator::computeProfileMetric(std::vector<SMUCNGPtr>& inputs, SM
auto queryMetrics = _profileMetricToMetricIds[outSensor->getMetric()]; //should be here since this was queried in the compute() member function
for(std::size_t i = 0; i < queryMetrics.size(); ++i){
if(!_queryEngine.querySensor(inputs[_metricToPosition[queryMetrics[i]]]->getName(), timestamp - (_interval * 1e6), timestamp, _buffers[i], false)){
LOG(debug) << "Could not find data for " << queryMetrics[i] << " metric.";
LOG(debug) << "Could not find data for metric id " << queryMetrics[i];
return;
}
}
......
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