diff --git a/src/linuxinfo/linuxinfo.psd1 b/src/linuxinfo/linuxinfo.psd1 index fda944b..ce9445f 100644 --- a/src/linuxinfo/linuxinfo.psd1 +++ b/src/linuxinfo/linuxinfo.psd1 @@ -12,7 +12,7 @@ RootModule = './linuxinfo.psm1' # Version number of this module. -ModuleVersion = '0.0.4' +ModuleVersion = '0.0.5' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/src/linuxinfo/public/Get-DisplayInfo.ps1 b/src/linuxinfo/public/Get-DisplayInfo.ps1 index 3cdeda5..4354544 100644 --- a/src/linuxinfo/public/Get-DisplayInfo.ps1 +++ b/src/linuxinfo/public/Get-DisplayInfo.ps1 @@ -7,7 +7,7 @@ function Get-DisplayInfo { $AspectRatio = ((xrandr | Select-Object -First 1).split(",")[1]).Replace(" current ",'') - $RefreshRate = (xrandr --prop | Select-String -SimpleMatch '*+' -Raw).Split(' ')[1].Replace('*+','') + $RefreshRate = ((xrandr --prop | Select-String -SimpleMatch '*+ ' -Raw).Split(" ") | Where-Object {$_ -like "*+"}).TrimEnd("*+") $Monitors = (xrandr --listmonitors)[0].ToCharArray() | Select-Object -Last 1 if (Get-Command lspci) {