mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-27 12:10:22 +00:00
do proper formatting for 1 threaded cpu
This commit is contained in:
parent
86d490432e
commit
ac22112cb2
@ -117,7 +117,8 @@ namespace CompatBot.Utils.ResultFormatters
|
||||
systemInfo += " " + items["os_version"];
|
||||
}
|
||||
}
|
||||
systemInfo += $"{Environment.NewLine}{items["cpu_model"]} | {items["thread_count"]} Threads | {items["memory_amount"]} GiB RAM";
|
||||
var threadCountItem = items["thread_count"]?.Trim();
|
||||
systemInfo += $"{Environment.NewLine}{items["cpu_model"]} | {threadCountItem} Thread{(threadCountItem == "1" ? "" : "s")} | {items["memory_amount"]} GiB RAM";
|
||||
if (!string.IsNullOrEmpty(items["cpu_tsc"]) && items["cpu_tsc"] != "Bad")
|
||||
systemInfo += " | TSC: " + items["cpu_tsc"];
|
||||
if (!string.IsNullOrEmpty(items["cpu_extensions"]))
|
||||
|
Loading…
Reference in New Issue
Block a user