fixing issue #132

forcing a certain value for IFS in _lp_load_color
This commit is contained in:
François Schmidts 2013-04-12 14:46:17 +02:00
parent 42af71d3f1
commit 289782f350

View File

@ -1151,6 +1151,7 @@ _lp_load_color()
[[ "$LP_ENABLE_LOAD" != 1 ]] && return [[ "$LP_ENABLE_LOAD" != 1 ]] && return
local load local load
local IFS=" \t\n"
load="$(_lp_cpu_load | sed 's/\.//g;s/^0*//g' )" load="$(_lp_cpu_load | sed 's/\.//g;s/^0*//g' )"
let "load=${load:-0}/$_lp_CPUNUM" let "load=${load:-0}/$_lp_CPUNUM"