mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* 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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user