HTMLNode bandwidthnfoboxHeader = bandwidthInfobox.addChild("div", "class", "infobox-header");
HTMLNode bandwidthInfoboxContent = bandwidthInfobox.addChild("div", "class", "infobox-content");
bandwidthnfoboxHeader.addChild("#", l10n("bandwidthLimit"));
bandwidthInfoboxContent.addChild("#", l10n("bandwidthLimitLong"));
HTMLNode bandwidthForm = ctx.addFormChild(bandwidthInfoboxContent, ".", "bwForm");
<BUG>HTMLNode result = bandwidthForm.addChild("select", "name", "bw");
Option sizeOption = config.get("node").getOption("outputBandwidthLimit");
</BUG>
if(!sizeOption.isDefault()) {
<BUG>int current = (Integer)sizeOption.getValue();
result.addChild("option", new String[] { "value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, l10n("currentSpeed")+" "+SizeUtil.formatSize(current)+"/s");</BUG>
}

HTMLNode bandwidthnfoboxHeader = bandwidthInfobox.addChild("div", "class", "infobox-header");
HTMLNode bandwidthInfoboxContent = bandwidthInfobox.addChild("div", "class", "infobox-content");
bandwidthnfoboxHeader.addChild("#", l10n("bandwidthLimit"));
bandwidthInfoboxContent.addChild("#", l10n("bandwidthLimitLong"));
HTMLNode bandwidthForm = ctx.addFormChild(bandwidthInfoboxContent, ".", "bwForm");
HTMLNode result = bandwidthForm.addChild("select", "name", "bw");
@SuppressWarnings("unchecked")
Option<Integer> sizeOption = (Option<Integer>) config.get("node").getOption("outputBandwidthLimit");
if(!sizeOption.isDefault()) {
int current = sizeOption.getValue();
result.addChild("option", new String[] { "value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, l10n("currentSpeed")+" "+SizeUtil.formatSize(current)+"/s");
}
