- | DiscImageChef has run on
+ |
+ DiscImageChef has run on
times.
|
@@ -75,7 +79,8 @@
- | DiscImageChef version
+ |
+ DiscImageChef version
has been used times.
|
diff --git a/DiscImageChef.Server/Statistics.aspx.cs b/DiscImageChef.Server/Statistics.aspx.cs
index 4fe595e8e..02ad83a08 100644
--- a/DiscImageChef.Server/Statistics.aspx.cs
+++ b/DiscImageChef.Server/Statistics.aspx.cs
@@ -47,32 +47,17 @@ using PlatformID = DiscImageChef.Interop.PlatformID;
namespace DiscImageChef.Server
{
///
- /// Renders a page with statistics, list of media type, devices, etc
+ /// Renders a page with statistics, list of media type, devices, etc
///
public partial class Statistics : Page
{
- class MediaItem
- {
- public string Type { get; set; }
- public string SubType { get; set; }
- public long Count { get; set; }
- }
-
- class DeviceItem
- {
- public string Manufacturer { get; set; }
- public string Model { get; set; }
- public string Revision { get; set; }
- public string Bus { get; set; }
- public string ReportLink { get; set; }
- }
+ List devices;
+ List operatingSystems;
+ List realMedia;
Stats statistics;
- List realMedia;
- List virtualMedia;
- List operatingSystems;
- List devices;
List versions;
+ List virtualMedia;
protected void Page_Load(object sender, EventArgs e)
{
@@ -80,8 +65,8 @@ namespace DiscImageChef.Server
try
{
- if(!File.Exists(Path.Combine(HostingEnvironment.MapPath("~") ?? throw new InvalidOperationException(), "Statistics",
- "Statistics.xml")))
+ if(!File.Exists(Path.Combine(HostingEnvironment.MapPath("~") ?? throw new InvalidOperationException(),
+ "Statistics", "Statistics.xml")))
{
#if DEBUG
content.InnerHtml =
@@ -253,8 +238,7 @@ namespace DiscImageChef.Server
xmlFile = xmlFile.Replace('/', '_').Replace('\\', '_').Replace('?', '_');
- if(!File.Exists(Path.Combine(HostingEnvironment.MapPath("~"), "Reports",
- xmlFile))) url = null;
+ if(!File.Exists(Path.Combine(HostingEnvironment.MapPath("~"), "Reports", xmlFile))) url = null;
devices.Add(new DeviceItem
{
@@ -262,8 +246,7 @@ namespace DiscImageChef.Server
Model = device.Model,
Revision = device.Revision,
Bus = device.Bus,
- ReportLink =
- url == null ? "No" : $"Yes"
+ ReportLink = url == null ? "No" : $"Yes"
});
}
@@ -302,5 +285,21 @@ namespace DiscImageChef.Server
return null;
}
+
+ class MediaItem
+ {
+ public string Type { get; set; }
+ public string SubType { get; set; }
+ public long Count { get; set; }
+ }
+
+ class DeviceItem
+ {
+ public string Manufacturer { get; set; }
+ public string Model { get; set; }
+ public string Revision { get; set; }
+ public string Bus { get; set; }
+ public string ReportLink { get; set; }
+ }
}
}
\ No newline at end of file
diff --git a/DiscImageChef.Server/TODO.aspx b/DiscImageChef.Server/TODO.aspx
index 426a5796e..c3b202919 100644
--- a/DiscImageChef.Server/TODO.aspx
+++ b/DiscImageChef.Server/TODO.aspx
@@ -43,7 +43,9 @@