mirror of https://github.com/aristocratos/bashtop
Merge branch 'master' of github.com:aristocratos/bashtop
commit
ca8023960b
8
bashtop
8
bashtop
|
@ -182,8 +182,12 @@ init_() { #? Collect needed information and set options before startig main loop
|
||||||
|
|
||||||
#* Get processor BCLK
|
#* Get processor BCLK
|
||||||
local param_var
|
local param_var
|
||||||
param_var="$(</usr/include/asm*/param.h)"
|
if [[ -e /usr/include/asm-generic/param.h ]]; then
|
||||||
get_value -v cpu[hz] -sv "param_var" -k "define HZ" -i
|
param_var="$(</usr/include/asm-generic/param.h)"
|
||||||
|
get_value -v cpu[hz] -sv "param_var" -k "define HZ" -i
|
||||||
|
else
|
||||||
|
cpu[hz]="100"
|
||||||
|
fi
|
||||||
|
|
||||||
#* Get max pid value and length
|
#* Get max pid value and length
|
||||||
proc[pid_max]="$(</proc/sys/kernel/pid_max)"
|
proc[pid_max]="$(</proc/sys/kernel/pid_max)"
|
||||||
|
|
Loading…
Reference in New Issue