Use standard CSS separator.

This commit is contained in:
Andrew Raines 2013-07-04 18:58:53 -05:00
parent dd6267aaf2
commit 2bb681466c
2 changed files with 9 additions and 9 deletions

View File

@ -97,7 +97,7 @@ public class Table {
if (sAttr.length() == 0) {
continue;
}
int idx = sAttr.indexOf('=');
int idx = sAttr.indexOf(':');
mAttr.put(sAttr.substring(0, idx), sAttr.substring(idx + 1));
}
}

View File

@ -93,14 +93,14 @@ public class RestShardsAction extends BaseRestHandler {
private Table buildTable(ClusterStateResponse state, IndicesStatsResponse stats) {
Table table = new Table();
table.startHeaders()
.addCell("index", "default=true;")
.addCell("shard", "default=true;")
.addCell("p/r", "default=true;")
.addCell("state", "default=true;")
.addCell("docs", "default=true;")
.addCell("store", "default=true;")
.addCell("ip", "default=true;")
.addCell("node", "default=true;")
.addCell("index", "default:true;")
.addCell("shard", "default:true;")
.addCell("p/r", "default:true;")
.addCell("state", "default:true;")
.addCell("docs", "default:true;")
.addCell("store", "default:true;")
.addCell("ip", "default:true;")
.addCell("node", "default:true;")
.endHeaders();
for (ShardRouting shard : state.getState().routingTable().allShards()) {