From 150687f2a18e140cd8f2bd100292ad7f269dec55 Mon Sep 17 00:00:00 2001 From: efrick Date: Thu, 17 Mar 2022 10:56:37 -0400 Subject: [PATCH] Update 'sysinfo.ps1' Resolves issue#15 --- sysinfo.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sysinfo.ps1 b/sysinfo.ps1 index b2c7994..ddb00d7 100644 --- a/sysinfo.ps1 +++ b/sysinfo.ps1 @@ -40,8 +40,7 @@ function Find-RAM { #This finds the systems total physical memory and then retur $system_memory = $cs.totalphysicalmemory - $system_memory = $system_memory * 0.000000001 #Multiplies by 0.000000001 as the number give by CIM is in bytes. - $system_memory = [math]::floor($system_memory) + $system_memory = [math]::Round($system_memory / 1GB, 2) $system_memory = [String]$system_memory + " GB" return $system_memory -- 2.39.5