Added list-encodings command.

This commit is contained in:
2017-10-12 22:41:31 +01:00
parent 4288900b9c
commit 9cd9285276
13 changed files with 100 additions and 5 deletions

View File

@@ -111,6 +111,7 @@ namespace DiscImageChef.Server.Controllers
oldStats.Commands.Ls += newStats.Commands.Ls;
oldStats.Commands.ExtractFiles += newStats.Commands.ExtractFiles;
oldStats.Commands.ListDevices += newStats.Commands.ListDevices;
oldStats.Commands.ListEncodings += newStats.Commands.ListEncodings;
}
}

View File

@@ -50,6 +50,7 @@
<i>extract-files</i> command has been run <asp:Label id="lblExtractFiles" runat="server"/> times<br/>
<i>formats</i> command has been run <asp:Label id="lblFormats" runat="server"/> times<br/>
<i>list-devices</i> command has been run <asp:Label id="lblListDevices" runat="server"/> times<br/>
<i>list-encodings</i> command has been run <asp:Label id="lblListEncodings" runat="server"/> times<br/>
<i>ls</i> command has been run <asp:Label id="lblLs" runat="server"/> times<br/>
<i>media-info</i> command has been run <asp:Label id="lblMediaInfo" runat="server"/> times<br/>
<i>media-scan</i> command has been run <asp:Label id="lblMediaScan" runat="server"/> times<br/>

View File

@@ -107,6 +107,7 @@ namespace DiscImageChef.Server
lblLs.Text = statistics.Commands.Ls.ToString();
lblExtractFiles.Text = statistics.Commands.ExtractFiles.ToString();
lblListDevices.Text = statistics.Commands.ListDevices.ToString();
lblListEncodings.Text = statistics.Commands.ListEncodings.ToString();
}
else
divCommands.Visible = false;
@@ -237,7 +238,7 @@ namespace DiscImageChef.Server
divDevices.Visible = false;
}
catch(Exception)
catch(Exception ex)
{
content.InnerHtml = "<b>Could not load statistics</b>";
#if DEBUG

View File

@@ -55,6 +55,8 @@ namespace DiscImageChef.Server {
protected System.Web.UI.WebControls.Label lblListDevices;
protected System.Web.UI.WebControls.Label lblListEncodings;
protected System.Web.UI.WebControls.Label lblLs;
protected System.Web.UI.WebControls.Label lblMediaInfo;