From 392f0b2a612c1c910b2f63b9337f2c7e2b1082d6 Mon Sep 17 00:00:00 2001 From: LordHepipud Date: Thu, 2 May 2019 16:37:56 +0200 Subject: [PATCH] Fixed variable naming Fixed variable naming for $ComputerInformations, which correctly should be named $ComputerInformation --- modules/memory.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/memory.ps1 b/modules/memory.ps1 index 7ac03b5..95dca6d 100644 --- a/modules/memory.ps1 +++ b/modules/memory.ps1 @@ -23,8 +23,8 @@ function ClassMemory ); # Lets load some additional memory informations, besides current performance counters - $ComputerInformations = Get-CimInstance Win32_ComputerSystem; - $counter.Add('\Memory\Physical Memory Total Bytes', @{ 'value' = $ComputerInformations.TotalPhysicalMemory; 'sample' = @{ }; }); + $ComputerInformation = Get-CimInstance Win32_ComputerSystem; + $counter.Add('\Memory\Physical Memory Total Bytes', @{ 'value' = $ComputerInformation.TotalPhysicalMemory; 'sample' = @{ }; }); return $counter; }