Showing
2 changed files
with
6 additions
and
2 deletions
... | @@ -16,7 +16,7 @@ import java.util.List; | ... | @@ -16,7 +16,7 @@ import java.util.List; |
16 | public class ClustersListCommand extends TopologyCommand { | 16 | public class ClustersListCommand extends TopologyCommand { |
17 | 17 | ||
18 | private static final String FMT = | 18 | private static final String FMT = |
19 | - "id=%s, devices=%d, links=%d"; | 19 | + "id=%d, devices=%d, links=%d"; |
20 | 20 | ||
21 | protected static final Comparator<TopologyCluster> ID_COMPARATOR = | 21 | protected static final Comparator<TopologyCluster> ID_COMPARATOR = |
22 | new Comparator<TopologyCluster>() { | 22 | new Comparator<TopologyCluster>() { |
... | @@ -33,7 +33,7 @@ public class ClustersListCommand extends TopologyCommand { | ... | @@ -33,7 +33,7 @@ public class ClustersListCommand extends TopologyCommand { |
33 | Collections.sort(clusters, ID_COMPARATOR); | 33 | Collections.sort(clusters, ID_COMPARATOR); |
34 | 34 | ||
35 | for (TopologyCluster cluster : clusters) { | 35 | for (TopologyCluster cluster : clusters) { |
36 | - print(FMT, cluster.id(), cluster.deviceCount(), cluster.linkCount()); | 36 | + print(FMT, cluster.id().index(), cluster.deviceCount(), cluster.linkCount()); |
37 | } | 37 | } |
38 | return null; | 38 | return null; |
39 | } | 39 | } | ... | ... |
-
Please register or login to post a comment