Skip to content

Commit

Permalink
fixed an integration that was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeJahad committed Dec 12, 2015
1 parent 1e7cf1f commit 21033d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testMultiplotQuery() throws Exception {
" {\n" +
" \"numPoints\": 1,\n" +
" \"timestamp\": 1382400000,\n" +
" \"average\": 397\n" +
" \"latest\": 397\n" +
" }\n" +
" ],\n" +
" \"type\": \"number\"\n" +
Expand All @@ -63,7 +63,7 @@ public void testMultiplotQuery() throws Exception {
" {\n" +
" \"numPoints\": 1,\n" +
" \"timestamp\": 1382400000,\n" +
" \"average\": 56\n" +
" \"latest\": 56\n" +
" }\n" +
" ],\n" +
" \"type\": \"number\"\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public JSONObject transformRollupData(Map<Locator, MetricData> metricData, Set<M
singleMetricJSON.put("unit", one.getValue().getUnit() == null ? Util.UNKNOWN : one.getValue().getUnit());
singleMetricJSON.put("type", one.getValue().getType());
Set<MetricStat> oneFilterStats = fixFilterStats(one.getValue(), filterStats);
JSONArray values = transformDataToJSONArray(one.getValue(), filterStats);
JSONArray values = transformDataToJSONArray(one.getValue(), oneFilterStats);
singleMetricJSON.put("data", values);
metricsArray.add(singleMetricJSON);
}
Expand Down

0 comments on commit 21033d2

Please sign in to comment.