From 9eff0c44a1eca5f265f3e1bc5f1073b4165b9c83 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Fri, 1 Sep 2017 16:59:23 -0400 Subject: Adding more test data Change-Id: I3bf8a96637b734150ae4acf8e6bf6def23fbc389 Signed-off-by: mbeierl --- .../src/templates/plot_multi_data.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docker/storperf-reporting/src/templates/plot_multi_data.html') diff --git a/docker/storperf-reporting/src/templates/plot_multi_data.html b/docker/storperf-reporting/src/templates/plot_multi_data.html index 2edae9e..4205fd6 100644 --- a/docker/storperf-reporting/src/templates/plot_multi_data.html +++ b/docker/storperf-reporting/src/templates/plot_multi_data.html @@ -84,27 +84,27 @@ ul { function init(){ page = []; report_data = results[0]["details"]["report_data"]; - build_tag = []; + ids = []; text = "

"; for ( var i = 0; i < results.length ; i++ ){ - build_tag.push(results[i]["build_tag"]); - text += "
"; + ids.push(results[i]["_id"]); + text += "
"; text += "

ID : " + results[i]["_id"] + "

"; text += "

Start Date : " + results[i]["start_date"] + "

"; text += "

Criteria : " + results[i]["criteria"] + "

"; text += "

Build Tag : " + results[i]["build_tag"] + "

"; - text += ""; + text += ""; text += "
"; } $("#content").html(text); } - function add_info(build_tag){ + function add_info(ids){ report_data = {}; keys = []; var i = 0; for ( i = 0; i < results.length ; i++ ){ - if( results[i]["build_tag"] == build_tag ){ + if( results[i]["_id"] == ids ){ report_data = results[i]["details"]["report_data"]; break; } @@ -113,7 +113,7 @@ ul { keys.push(k); } text = ""; - text += "
"; + text += "
"; text += "

ID : " + results[i]["_id"] + "

"; text += "

Start Date : " + results[i]["start_date"] + "

"; text += "

Criteria : " + results[i]["criteria"] + "

"; -- cgit 1.2.3-korg