Skip to content

Commit

Permalink
convert byte to mb (aws#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmealy1 authored Aug 5, 2022
1 parent a4a6e0c commit f457325
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration/test/performancetest/performance_query_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ func GetPerformanceMetrics(instanceId string, agentRuntime, logNum, tps int, age

//add actual test data with statistics
for _, result := range metrics.MetricDataResults {
//convert memory bytes to MB
if (*result.Label == "procstat_memory_rss") {
for i, val := range(result.Values) {
result.Values[i] = val / (1000000)
}
}
stats:= CalcStats(result.Values)
testMetricResults[*result.Label] = stats
}
Expand Down

0 comments on commit f457325

Please sign in to comment.