aboutsummaryrefslogtreecommitdiff
path: root/rcynic-ng/show.awk
diff options
context:
space:
mode:
Diffstat (limited to 'rcynic-ng/show.awk')
-rw-r--r--rcynic-ng/show.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/rcynic-ng/show.awk b/rcynic-ng/show.awk
index bb7ac93e..84d33cda 100644
--- a/rcynic-ng/show.awk
+++ b/rcynic-ng/show.awk
@@ -19,6 +19,10 @@
BEGIN {
FS = "\t";
+ label[++nlabels] = "hostname";
+ head["hostname", 1] = "Repository";
+ head["hostname", 2] = "Host";
+ width["hostname"] = length(head["hostname", 1]);
}
!NF {
@@ -59,7 +63,7 @@ END {
break;
for (j = 1; j <= nlabels; j++) {
if (j == 1)
- printf "%*s", width[label[j]], head[label[j], i];
+ printf "%-*s", width[label[j]], head[label[j], i];
else if (total[label[j]] > 0)
printf " %*s", width[label[j]], head[label[j], i];
}