summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDavid McKay <david@rawkode.com>2016-05-02 17:35:43 +0300
committerDavid McKay <david@rawkode.com>2016-05-02 17:35:43 +0300
commit61a0cee4f513f71c17737abd2fe1d3d5e9aa67e7 (patch)
tree48884a16d580019bde33fd327670ac31b4d354d0 /powerlevel9k.zsh-theme
parentd2728f0dd1fd301f6de2250053485553673aafd3 (diff)
Using logical CPUs, as it's a fairer reflection of CPU load
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0f321bc3..224e34cc 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -589,7 +589,7 @@ prompt_load() {
if [[ "$OS" == "OSX" ]]; then
load_avg_1min=$(sysctl vm.loadavg | grep -o -E '[0-9]+(\.|,)[0-9]+' | head -n 1)
- cores=$(sysctl -n hw.physicalcpu)
+ cores=$(sysctl -n hw.logicalcpu)
else
load_avg_1min=$(grep -o "[0-9.]*" /proc/loadavg | head -n 1)
cores=$(nproc)