diff --git a/test/susqltop b/test/susqltop index a7abb0e..b638ade 100755 --- a/test/susqltop +++ b/test/susqltop @@ -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 @@ -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