Skip to content
Snippets Groups Projects
Commit 9dc122ab authored by Jürgen Walter's avatar Jürgen Walter
Browse files

axis name fixes for visualization

parent 92a6d47a
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,8 @@ public abstract class AbstractVisualizationType implements IVisualizationType { ...@@ -55,7 +55,8 @@ public abstract class AbstractVisualizationType implements IVisualizationType {
String description = ""; String description = "";
String metric = this.getResult().getMetric(); String metric = this.getResult().getMetric();
if (metric.contains("time") | metric.contains("Time")) { if (metric.contains("time") | metric.contains("Time")) {
if (this.getResult().getScalex().contains("arrivals")) { if (this.getResult().getScalex().contains("arrivals")
|| this.getResult().getScalex().contains("Measurement Number")) {
description = "experiment arrivals"; description = "experiment arrivals";
} else { } else {
// description = "arrivals" + " in " + "ms"; // description = "arrivals" + " in " + "ms";
...@@ -76,7 +77,12 @@ public abstract class AbstractVisualizationType implements IVisualizationType { ...@@ -76,7 +77,12 @@ public abstract class AbstractVisualizationType implements IVisualizationType {
metric = metric.replace("avg", ""); metric = metric.replace("avg", "");
metric = metric.replace("average", ""); metric = metric.replace("average", "");
if (this.getResult().getScaley() != null && this.getResult().getScaley() != "") { if (this.getResult().getScaley() != null && this.getResult().getScaley() != "") {
return metric + " in " + this.getResult().getScaley(); if(this.getResult().getScaley().equalsIgnoreCase("responseTime")) {
return "response time in ms";
//return metric + " (ms)"
} else {
return metric;
}
} else { } else {
return metric; return metric;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment