diff --git a/DiscImageChef.Server/Controllers/StatsController.cs b/DiscImageChef.Server/Controllers/StatsController.cs
index 24ed4106a..7c33af9d8 100644
--- a/DiscImageChef.Server/Controllers/StatsController.cs
+++ b/DiscImageChef.Server/Controllers/StatsController.cs
@@ -203,41 +203,7 @@ namespace DiscImageChef.Server.Controllers
if(ctx.Commands.Any())
{
- ViewBag.lblAnalyze = ctx.Commands.FirstOrDefault(c => c.Name == "analyze")?.Count.ToString() ?? "0";
- ViewBag.lblCompare = ctx.Commands.FirstOrDefault(c => c.Name == "compare")?.Count.ToString() ?? "0";
- ViewBag.lblChecksum =
- ctx.Commands.FirstOrDefault(c => c.Name == "checksum")?.Count.ToString() ?? "0";
- ViewBag.lblEntropy = ctx.Commands.FirstOrDefault(c => c.Name == "entropy")?.Count.ToString() ?? "0";
- ViewBag.lblVerify = ctx.Commands.FirstOrDefault(c => c.Name == "verify")?.Count.ToString() ?? "0";
- ViewBag.lblPrintHex =
- ctx.Commands.FirstOrDefault(c => c.Name == "printhex")?.Count.ToString() ?? "0";
- ViewBag.lblDecode = ctx.Commands.FirstOrDefault(c => c.Name == "decode")?.Count.ToString() ?? "0";
- ViewBag.lblDeviceInfo =
- ctx.Commands.FirstOrDefault(c => c.Name == "device-info")?.Count.ToString() ?? "0";
- ViewBag.lblMediaInfo = ctx.Commands.FirstOrDefault(c => c.Name == "media-info")?.Count.ToString() ??
- "0";
- ViewBag.lblMediaScan = ctx.Commands.FirstOrDefault(c => c.Name == "media-scan")?.Count.ToString() ??
- "0";
- ViewBag.lblFormats = ctx.Commands.FirstOrDefault(c => c.Name == "formats")?.Count.ToString() ?? "0";
- ViewBag.lblBenchmark =
- ctx.Commands.FirstOrDefault(c => c.Name == "benchmark")?.Count.ToString() ?? "0";
- ViewBag.lblCreateSidecar =
- ctx.Commands.FirstOrDefault(c => c.Name == "create-sidecar")?.Count.ToString() ?? "0";
- ViewBag.lblDumpMedia = ctx.Commands.FirstOrDefault(c => c.Name == "dump-media")?.Count.ToString() ??
- "0";
- ViewBag.lblDeviceReport =
- ctx.Commands.FirstOrDefault(c => c.Name == "device-report")?.Count.ToString() ?? "0";
- ViewBag.lblLs = ctx.Commands.FirstOrDefault(c => c.Name == "ls")?.Count.ToString() ?? "0";
- ViewBag.lblExtractFiles =
- ctx.Commands.FirstOrDefault(c => c.Name == "extract-files")?.Count.ToString() ?? "0";
- ViewBag.lblListDevices =
- ctx.Commands.FirstOrDefault(c => c.Name == "list-devices")?.Count.ToString() ?? "0";
- ViewBag.lblListEncodings =
- ctx.Commands.FirstOrDefault(c => c.Name == "list-encodings")?.Count.ToString() ?? "0";
- ViewBag.lblConvertImage =
- ctx.Commands.FirstOrDefault(c => c.Name == "convert-image")?.Count.ToString() ?? "0";
- ViewBag.lblImageInfo = ctx.Commands.FirstOrDefault(c => c.Name == "image-info")?.Count.ToString() ??
- "0";
+ ViewBag.repCommands = ctx.Commands.OrderBy(c => c.Name).ToList();
decimal totalCommandCount = ctx.Commands.Sum(o => o.Count);
diff --git a/DiscImageChef.Server/Views/Stats/Index.cshtml b/DiscImageChef.Server/Views/Stats/Index.cshtml
index f6674524f..752865898 100644
--- a/DiscImageChef.Server/Views/Stats/Index.cshtml
+++ b/DiscImageChef.Server/Views/Stats/Index.cshtml
@@ -186,37 +186,52 @@
}
-
- analyze command has been run @ViewBag.lblAnalyze times
- benchmark command has been run @ViewBag.lblBenchmark times
- checksum command has been run @ViewBag.lblChecksum times
- compare command has been run @ViewBag.lblCompare times
- convert-image command has been run @ViewBag.lblConvertImage times
- create-sidecar command has been run @ViewBag.lblCreateSidecar times
- decode command has been run @ViewBag.lblDecode times
- device-info command has been run @ViewBag.lblDeviceInfo times
- device-report command has been run @ViewBag.lblDeviceReport times
- dump-media command has been run @ViewBag.lblDumpMedia times
- entropy command has been run @ViewBag.lblEntropy times
- extract-files command has been run @ViewBag.lblExtractFiles times
- formats command has been run @ViewBag.lblFormats times
- image-info command has been run @ViewBag.lblImageInfo times
- list-devices command has been run @ViewBag.lblListDevices times
- list-encodings command has been run @ViewBag.lblListEncodings times
- ls command has been run @ViewBag.lblLs times
- media-info command has been run @ViewBag.lblMediaInfo times
- media-scan command has been run @ViewBag.lblMediaScan times
- printhex command has been run @ViewBag.lblPrintHex times
- verify command has been run @ViewBag.lblVerify times
-
| + @command.Name has been run @command.Count times. + | +