mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added statistics to underlying operating system version.
This commit is contained in:
@@ -62,8 +62,10 @@ namespace DiscImageChef.Server
|
||||
if(statistics.OperatingSystems != null)
|
||||
{
|
||||
operatingSystems = new List<NameValueStats>();
|
||||
foreach(NameValueStats nvs in statistics.OperatingSystems)
|
||||
operatingSystems.Add(new NameValueStats { name = Interop.DetectOS.GetPlatformName((Interop.PlatformID)Enum.Parse(typeof(Interop.PlatformID), nvs.name)), Value = nvs.Value });
|
||||
foreach(OsStats nvs in statistics.OperatingSystems)
|
||||
operatingSystems.Add(new NameValueStats { name = string.Format("{0}{1}{2}", Interop.DetectOS.GetPlatformName((Interop.PlatformID)Enum.Parse(typeof(Interop.PlatformID), nvs.name), nvs.version),
|
||||
string.IsNullOrEmpty(nvs.version) ? "" : " ", nvs.version), Value = nvs.Value });
|
||||
//operatingSystems.Add(new OsStats { name = Interop.DetectOS.GetPlatformName((Interop.PlatformID)Enum.Parse(typeof(Interop.PlatformID), nvs.name), nvs.version), Value = nvs.Value, version = nvs.version });
|
||||
repOperatingSystems.DataSource = operatingSystems.OrderBy(os => os.name).ToList();
|
||||
repOperatingSystems.DataBind();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user