mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
Using logical CPUs, as it's a fairer reflection of CPU load
This commit is contained in:
parent
d2728f0dd1
commit
61a0cee4f5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue