mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 03:59:34 +08:00
fix
This commit is contained in:
@@ -178,7 +178,7 @@ namespace System.Application.UI
|
||||
var nativeHeapFreeSize = memoryInfo.AvailMem;
|
||||
var usedMemInBytes = nativeHeapSize - nativeHeapFreeSize;
|
||||
var usedMemInPercentage = usedMemInBytes * 100M / nativeHeapSize;
|
||||
b.Append($"{IOPath.GetDisplayFileSizeString((float)usedMemInBytes)} ({usedMemInPercentage:0.00}%)");
|
||||
b.Append($"{IOPath.GetDisplayFileSizeString(usedMemInBytes)} ({usedMemInPercentage:0.00}%)");
|
||||
#else
|
||||
b.Append(IOPath.GetDisplayFileSizeString(Environment.WorkingSet));
|
||||
#endif
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace System.Application.UI.ViewModels
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var length = IOPath.GetDirectorySize(dirPath);
|
||||
var lenString = IOPath.GetDisplayFileSizeString((float)length);
|
||||
var lenString = IOPath.GetDisplayFileSizeString(length);
|
||||
await MainThread2.InvokeOnMainThreadAsync(() =>
|
||||
{
|
||||
action(lenString);
|
||||
|
||||
Reference in New Issue
Block a user