Initial migration commit to .NET 7
Menu, sync and other stuff except resource system should be working. We're far from finished
This commit is contained in:
@ -7,9 +7,9 @@ namespace RageCoop.Client
|
||||
{
|
||||
static Statistics()
|
||||
{
|
||||
Task.Run(() =>
|
||||
ThreadManager.CreateThread(() =>
|
||||
{
|
||||
while (true)
|
||||
while (!Main.IsUnloading)
|
||||
{
|
||||
var bu = Networking.Peer.Statistics.SentBytes;
|
||||
var bd = Networking.Peer.Statistics.ReceivedBytes;
|
||||
@ -17,7 +17,7 @@ namespace RageCoop.Client
|
||||
BytesUpPerSecond = Networking.Peer.Statistics.SentBytes - bu;
|
||||
BytesDownPerSecond = Networking.Peer.Statistics.ReceivedBytes - bd;
|
||||
}
|
||||
});
|
||||
},"Statistics");
|
||||
}
|
||||
|
||||
public static int BytesDownPerSecond { get; private set; }
|
||||
|
Reference in New Issue
Block a user