From 7b46ee3503801c1779d61eed5b9f94bf09442a89 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 9 May 2022 09:19:06 +0200 Subject: [PATCH] Update write-motd.ps1 --- Scripts/write-motd.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/write-motd.ps1 b/Scripts/write-motd.ps1 index e6a27360..53210018 100755 --- a/Scripts/write-motd.ps1 +++ b/Scripts/write-motd.ps1 @@ -40,7 +40,7 @@ $CurrentLoad = "{0}%" -f $(Get-WmiObject Win32_Processor | Measure-Object -Prope # $Processor = Get-CimInstance -ClassName Win32_Processor # $Memory_Size = "{0}mb/{1}mb Used" -f (([math]::round($ReturnedValues.Operating_System.TotalVisibleMemorySize / 1KB)) - ([math]::round($ReturnedValues.Operating_System.FreePhysicalMemory / 1KB))), ([math]::round($ReturnedValues.Operating_System.TotalVisibleMemorySize / 1KB)) $DriveDetails = Get-PSDrive C -$DiskSize = "{0}GB of {1}GB used" -f (([math]::round($DriveDetails.Used / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB)))) +$DiskSize = "{0}GB free of {1}GB" -f (([math]::round($DriveDetails.Free / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB)))) # Print results: [Environment]::NewLine