= Updating benchmark formatting

This commit is contained in:
Matthew Cech
2019-06-19 22:40:13 -07:00
parent 7a369e98f2
commit a562e5addb
@@ -24,7 +24,7 @@ public class BenchmarkCommandInfo extends BenchmarkCommand
return output; return output;
} }
public static KittyEmbed FormatInfoEmbed(BenchmarkEntry entry) public static KittyEmbed formatInfoEmbed(BenchmarkEntry entry)
{ {
// Populate general embed info // Populate general embed info
KittyEmbed embed = new KittyEmbed(); KittyEmbed embed = new KittyEmbed();
@@ -85,7 +85,7 @@ public class BenchmarkCommandInfo extends BenchmarkCommand
List<BenchmarkEntry> sortedEntries = manager.evaluateLevenshteinDistance(entries, searchString); List<BenchmarkEntry> sortedEntries = manager.evaluateLevenshteinDistance(entries, searchString);
BenchmarkEntry entry = sortedEntries.get(0); BenchmarkEntry entry = sortedEntries.get(0);
KittyEmbed embed = FormatInfoEmbed(entry); KittyEmbed embed = formatInfoEmbed(entry);
if(entries.size() > 1) if(entries.size() > 1)
embed.footerText += " (Chose the " + entry.model + " from " + entries.size() + " potential components. To see others, try the command 'benchmark find " + searchString +"')"; embed.footerText += " (Chose the " + entry.model + " from " + entries.size() + " potential components. To see others, try the command 'benchmark find " + searchString +"')";