Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
dcdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dcdb
dcdb
Commits
15bd792a
Commit
15bd792a
authored
Nov 15, 2019
by
Carla Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small bugfix with formulas
parent
01ce2ef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
analytics/operators/smucngperf/SKXPMUMetrics.cpp
analytics/operators/smucngperf/SKXPMUMetrics.cpp
+1
-1
analytics/operators/smucngperf/SMUCNGPerfOperator.cpp
analytics/operators/smucngperf/SMUCNGPerfOperator.cpp
+1
-1
No files found.
analytics/operators/smucngperf/SKXPMUMetrics.cpp
View file @
15bd792a
...
...
@@ -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
,
...
...
analytics/operators/smucngperf/SMUCNGPerfOperator.cpp
View file @
15bd792a
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment