mirror of
https://github.com/toradex/rt-validation.git
synced 2025-06-19 03:11:58 +00:00
rt-tests: Minor code improvements
This commit is contained in:
parent
bd2dadcf93
commit
1a880a38f6
@ -16,8 +16,7 @@ grep -v -e "^#" -e "^$" output | tr " " "\t" >histogram
|
|||||||
cores=$(grep -c ^processor /proc/cpuinfo)
|
cores=$(grep -c ^processor /proc/cpuinfo)
|
||||||
for i in `seq 1 $cores`
|
for i in `seq 1 $cores`
|
||||||
do
|
do
|
||||||
column=`expr $i + 1`
|
cut -f1,$(( $i + 1 )) histogram >histogram$i
|
||||||
cut -f1,$column histogram >histogram$i
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create plot command header
|
# Create plot command header
|
||||||
@ -38,7 +37,7 @@ do
|
|||||||
then
|
then
|
||||||
echo -n ", " >>plotcmd
|
echo -n ", " >>plotcmd
|
||||||
fi
|
fi
|
||||||
cpuno=`expr $i - 1`
|
cpuno=$(( $i - 1 ))
|
||||||
if test $cpuno -lt 10
|
if test $cpuno -lt 10
|
||||||
then
|
then
|
||||||
title=" CPU$cpuno"
|
title=" CPU$cpuno"
|
||||||
|
Loading…
Reference in New Issue
Block a user