Return sensible name to display for Delay node Queue mode

This commit is contained in:
Dave C-J 2014-10-29 18:26:43 +00:00
parent a1830def8e
commit 348b642d25
1 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,10 @@
} else if (this.pauseType == "random") {
return this.name || "random";
}
return "foo";
else {
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
return this.name || "queue" +this.rate+" msg/"+ units;
}
},
labelStyle: function() { // sets the class to apply to the label
return this.name?"node_label_italic":"";