range
This commit is contained in:
parent
8efb312844
commit
1d526efe8f
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ function get_cpu_labels {
|
||||||
echo multigraph cpu_load_detail_$name
|
echo multigraph cpu_load_detail_$name
|
||||||
c=0
|
c=0
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[:print:]')
|
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[0-9]')
|
||||||
done <<< "$data"
|
done <<< "$data"
|
||||||
echo DEBUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG! : $anzahl_cpu
|
echo DEBUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG! : $anzahl_cpu
|
||||||
while [ "$c" -lt "$anzahl_cpu" ]; do
|
while [ "$c" -lt "$anzahl_cpu" ]; do
|
||||||
|
@ -77,7 +77,7 @@ function get_cpu_labels {
|
||||||
}
|
}
|
||||||
function get_cpu_values {
|
function get_cpu_values {
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[:print:]')
|
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[0-9]')
|
||||||
done <<< "$data"
|
done <<< "$data"
|
||||||
echo multigraph cpu_load_detail_$name
|
echo multigraph cpu_load_detail_$name
|
||||||
c=0
|
c=0
|
||||||
|
|
Loading…
Reference in a new issue