Fix wrong format String

Change-Id: I16bbb8953203ebb8092db3e12906d116b7009335
This commit is contained in:
Yuta HIGUCHI 2016-12-23 13:20:09 -08:00 committed by Yuta HIGUCHI
parent c84897036e
commit bacea91117

View File

@ -404,7 +404,7 @@ public class IntentsListCommand extends AbstractShellCommand {
builder.append(String.format(" ingress=%s, egress=%s", pi.ingressPoint(), pi.egressPoints()));
} else if (intent instanceof PathIntent) {
PathIntent pi = (PathIntent) intent;
builder.append(String.format(" path=%s, cost=%d", pi.path().links(), pi.path().cost()));
builder.append(String.format(" path=%s, cost=%f", pi.path().links(), pi.path().cost()));
} else if (intent instanceof LinkCollectionIntent) {
LinkCollectionIntent li = (LinkCollectionIntent) intent;
builder.append(String.format(" links=%s", li.links()));