* DiscImageChef.Server/Default.aspx.cs:

* DiscImageChef.Server/Controllers/UploadStatsController.cs:

	* DiscImageChef.Server/ViewReport.aspx.cs:
	  Show requested information before adapted for filesystem.
This commit is contained in:
2017-06-05 17:46:27 +01:00
parent af244b0055
commit d21e79a212
4 changed files with 18 additions and 4 deletions

View File

@@ -37,6 +37,7 @@
// //$Id$
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Web;
using System.Web.Http;
@@ -482,6 +483,9 @@ namespace DiscImageChef.Server.Controllers
}
}
if(oldStats.Devices != null)
oldStats.Devices = oldStats.Devices.OrderBy(device => device.Manufacturer).ThenBy(device => device.Model).ThenBy(device => device.Revision).ThenBy(device => device.Bus).ToList();
Random rng = new Random();
string filename = string.Format("BackupStats_{0:yyyyMMddHHmmssfff}_{1}.xml", DateTime.UtcNow, rng.Next());
while(File.Exists(Path.Combine(System.Web.Hosting.HostingEnvironment.MapPath("~"), "Statistics", filename)))