diff options
Diffstat (limited to 'scripts/contrib/bb-perf/bb-matrix-plot.sh')
-rwxr-xr-x | scripts/contrib/bb-perf/bb-matrix-plot.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/contrib/bb-perf/bb-matrix-plot.sh b/scripts/contrib/bb-perf/bb-matrix-plot.sh index 62aa66d96d..87e8cb1abd 100755 --- a/scripts/contrib/bb-perf/bb-matrix-plot.sh +++ b/scripts/contrib/bb-perf/bb-matrix-plot.sh | |||
@@ -101,12 +101,12 @@ if [ -z "$TITLE" ]; then | |||
101 | fi | 101 | fi |
102 | 102 | ||
103 | # Determine the dgrid3d mesh dimensions size | 103 | # Determine the dgrid3d mesh dimensions size |
104 | MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sort | uniq | head -n1) | 104 | MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sed 's/^0*//' | sort -n | uniq | head -n1) |
105 | MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sort | uniq | tail -n1) | 105 | MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sed 's/^0*//' | sort -n | uniq | tail -n1) |
106 | BB_CNT=$[${MAX#*0} - $MIN + 1] | 106 | BB_CNT=$[${MAX} - $MIN + 1] |
107 | MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sort | uniq | head -n1) | 107 | MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sed 's/^0*//' | sort -n | uniq | head -n1) |
108 | MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sort | uniq | tail -n1) | 108 | MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sed 's/^0*//' | sort -n | uniq | tail -n1) |
109 | PM_CNT=$[${MAX#*0} - $MIN + 1] | 109 | PM_CNT=$[${MAX} - $MIN + 1] |
110 | 110 | ||
111 | 111 | ||
112 | (cat <<EOF | 112 | (cat <<EOF |