Merge pull request #285 from iandrewt/refresh_fix

fixed refresh rate on OS X
This commit is contained in:
Dylan Araps 2016-06-14 17:10:10 +10:00 committed by GitHub
commit 3b4335583d
1 changed files with 2 additions and 2 deletions

View File

@ -1538,8 +1538,8 @@ getresolution () {
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
fi
[[ "$refresh_rate" == "off" ]] && \
resolution="${resolution// @ *([0-9])Hz}"
[ "$refresh_rate" == "off" ] || [ "${resolution// * @ }" == "0Hz" ] && \
resolution="${resolution// @ *[0-9]Hz}"
;;
"Windows")