Skip to content

Commit e9fb651

Browse files
committed
add 32-48 ram bucket to hw survey stats
1 parent a35786a commit e9fb651

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Clients/IrdLibraryClient/IrdClient.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ public async Task<List<Ird>> DownloadAsync(string productCode, string localCache
125125
}
126126
}
127127

128-
public static string GetDownloadLink(string relativeLink)
128+
public static Uri GetDownloadLink(string relativeLink)
129129
{
130130
var encodedLink = Uri.EscapeDataString(relativeLink);
131-
var fullUri = new Uri(BaseDownloadUri, encodedLink);
132-
return fullUri.AbsoluteUri;
131+
return new(BaseDownloadUri, encodedLink);
133132
}
134133
}
135134
}

CompatBot/Commands/Hardware.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,22 @@ internal sealed class Hardware: BaseCommandModuleCustom
132132
var ram6to8 = mem.Where(i => i.Mem is >= 6 * 1024 - margin and < 8 * 1024 - margin).Sum(i => i.Count);
133133
var ram8to16 = mem.Where(i => i.Mem is >= 8 * 1024 - margin and < 16 * 1024 - margin).Sum(i => i.Count);
134134
var ram16to32 = mem.Where(i => i.Mem is >= 16 * 1024 - margin and < 32 * 1024 - margin).Sum(i => i.Count);
135-
var highRam = mem.Where(i => i.Mem >= 32 * 1024 - margin).Sum(i => i.Count);
135+
var ram32to48 = mem.Where(i => i.Mem is >= 32 * 1024 - margin and < 48 * 1024 - margin).Sum(i => i.Count);
136+
var highRam = mem.Where(i => i.Mem >= 48 * 1024 - margin).Sum(i => i.Count);
136137
var ramStats = new (int Count, string Mem)[]
137138
{
138139
(lowRam, "less than 4 GB"),
139140
(ram4to6, "4 to 6 GB"),
140141
(ram6to8, "6 to 8 GB"),
141142
(ram8to16, "8 to 16 GB"),
142143
(ram16to32, "16 to 32 GB"),
143-
(highRam, "32 GB or more"),
144+
(ram32to48, "32 to 48 GB"),
145+
(highRam, "48 GB or more"),
144146
}
145147
.Where(i => i.Count > 0)
146-
.Take(top)
148+
//.Reverse()
147149
.OrderByDescending(i => i.Count)
150+
.Take(top)
148151
.ToList();
149152

150153
var embed = new DiscordEmbedBuilder()
@@ -205,7 +208,7 @@ private static string GetCpuFeature(CpuFeatures feature)
205208
CpuFeatures.Avx => "AVX",
206209
CpuFeatures.Avx2 => "AVX2",
207210
CpuFeatures.Avx512 => "AVX-512",
208-
CpuFeatures.Avx512IL => "AVX-512IL",
211+
CpuFeatures.Avx512IL => "AVX-512+",
209212
CpuFeatures.Fma3 => "FMA3",
210213
CpuFeatures.Fma4 => "FMA4",
211214
CpuFeatures.Xop => "XOP",

0 commit comments

Comments
 (0)