Skip to content

Commit

Permalink
increase field width
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Mar 25, 2024
1 parent 1e3009c commit 092321e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/susqltop
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
ns=$(echo ${alldata} | jq -r '.items[].metadata.namespace' | uniq)
fi

printf '%-20s%-40s%-40s%-20s\n' NameSpace LabelGroup Labels TotalEnergy
printf '%-20s%-40s%-60s%-20s\n' NameSpace LabelGroup Labels TotalEnergy

for namespace in ${ns}
do
Expand All @@ -21,6 +21,6 @@ do
newdata=$(echo ${alldata} | jq '.items[] | select(.metadata.namespace=="'${namespace}'" and .metadata.name=="'${labelgroup}'")')
totalEnergy=$(echo ${newdata} | jq -cr '.status.totalEnergy')
labels=$(echo ${newdata} | jq -cr '.spec.labels')
printf '%-20s%-40s%-40s%-20s\n' ${namespace} ${labelgroup} ${labels} ${totalEnergy}
printf '%-20s%-40s%-60s%-20s\n' ${namespace} ${labelgroup} ${labels} ${totalEnergy}
done
done | sort -nr -k4 | head -n 20

0 comments on commit 092321e

Please sign in to comment.