diff --git a/Source/Editor/Windows/Profiler/Network.cs b/Source/Editor/Windows/Profiler/Network.cs index fa5701db9..2c064351a 100644 --- a/Source/Editor/Windows/Profiler/Network.cs +++ b/Source/Editor/Windows/Profiler/Network.cs @@ -146,12 +146,11 @@ namespace FlaxEditor.Windows.Profiler avgStats.TotalDataSent += e.TotalDataSent; avgStats.TotalDataReceived += e.TotalDataReceived; } - avgStats.TotalDataSent /= (uint)_stats.Count; - avgStats.TotalDataReceived /= (uint)_stats.Count; + //avgStats.TotalDataSent /= (uint)_stats.Count; + //avgStats.TotalDataReceived /= (uint)_stats.Count; _dataSentRateChart.AddSample(avgStats.TotalDataSent); _dataReceivedRateChart.AddSample(avgStats.TotalDataReceived); - // Gather network events var events = ProfilingTools.EventsNetwork; if (_events == null) @@ -319,7 +318,7 @@ namespace FlaxEditor.Windows.Profiler private static string FormatCellBytes(object x) { - return Utilities.Utils.FormatBytesCount((ulong)x); + return Utilities.Utils.FormatBytesCount((ulong)(int)x); } private static int SortRows(Control x, Control y)