Fix number of entries not being used.

This commit is contained in:
asofold 2014-08-01 19:41:44 +02:00
parent 1a73b65d4a
commit 58f84028f3

View File

@ -120,6 +120,7 @@ public class TopCommand extends BaseCommand{
builder.append("/max="); builder.append("/max=");
builder.append(format.format(view.maxVL)); builder.append(format.format(view.maxVL));
builder.append(")"); builder.append(")");
done ++;
if (done >= n) { if (done >= n) {
break; break;
} }
@ -153,7 +154,7 @@ public class TopCommand extends BaseCommand{
return false; return false;
} }
int startIndex = 1; int startIndex = 1;
Integer n = 10; int n = 10;
try { try {
n = Integer.parseInt(args[1].trim()); n = Integer.parseInt(args[1].trim());
startIndex = 2; startIndex = 2;