aboutsummaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-04-11 10:00:58 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-04-11 10:00:58 +0300
commit1d7c63f80fcc1ea1b79342c972fe77e3e2ec80e4 (patch)
treea0f898f301e056d8ff708ffc01e3ddf652f24803 /gitstatus
parent2b921c07daaa6a9e5a80fa1a9410d67bc287ebda (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rw-r--r--gitstatus/gitstatus.plugin.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index 6b28997c..696baada 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -221,6 +221,7 @@ function gitstatus_start() {
FreeBSD) threads=$(( 2 * $(sysctl -n hw.ncpu) ));;
*) threads=$(( 2 * $(getconf _NPROCESSORS_ONLN) ));;
esac
+ (( threads <= 32 )) || threads=32
}
local -i sigwinch_pid=-1