Skip to content

Commit 14732ca

Browse files
committed
* Show used memory instead of available memory
1 parent 9b23906 commit 14732ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MemPlus/Classes/RAM/RamController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private void OnTimedEvent(object source, ElapsedEventArgs e)
6363
_gauge.GaugeHeader = "RAM usage (" + RamUsagePercentage.ToString("F2") + "%)";
6464

6565
_lblTotal.Content = (RamTotal / 1024 / 1024 / 1024).ToString("F2") + " GB";
66-
_lblAvailable.Content = ((RamTotal - RamUsage) / 1024 / 1024 / 1024).ToString("F2") + " GB";
66+
_lblAvailable.Content = (RamUsage / 1024 / 1024 / 1024).ToString("F2") + " GB";
6767
});
6868
}
6969

MemPlus/Windows/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
<Label Content="Total physical memory:" FontSize="14" Margin="10,5" />
8787
<Label x:Name="LblTotalPhysicalMemory" Grid.Row="2" Content="" FontSize="14" Foreground="Green" Margin="10,5" />
88-
<Label Grid.Row="3" Content="Available physical memory:" FontSize="14" Margin="10,5" />
88+
<Label Grid.Row="3" Content="Used physical memory:" FontSize="14" Margin="10,5" />
8989
<Label x:Name="LblAvailablePhysicalMemory" Grid.Row="4" Content="" FontSize="14" Foreground="Red" Margin="10,5" />
9090

9191
<Button Grid.Row="5" x:Name="BtnClearMemory" Content="Clear memory" Click="BtnClearMemory_OnClick" Margin="10,5" FontSize="14"/>

0 commit comments

Comments
 (0)