Skip to content

Commit

Permalink
minor changes in README.md, object.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed May 5, 2022
1 parent 0d2df86 commit 9766faa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ cluster3.example.com ns1 env=prod pod 42 23d 23d
cluster1.example.com ns1 env=prod ingress 34 2d4h 137d
cluster2.example.com ns1 env=prod ingress 34 2d4h 110d
cluster3.example.com ns1 env=prod ingress 21 33d 123d
----- -----
Total 267
-----
267
```

Installation
Expand Down
8 changes: 4 additions & 4 deletions object.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func PrintObjects(objects []K8sObject, age bool) {
total += o.count
fmt.Fprintf(tw, format, o.cluster, o.namespace, o.labelSelector, o.kind, o.count, o.newest, o.oldest)
}
fmt.Fprintf(tw, format, "-----", "", "", "", "-----", "", "")
fmt.Fprintf(tw, format, "Total", "", "", "", total, "", "")
fmt.Fprintf(tw, format, "", "", "", "", "-----", "", "")
fmt.Fprintf(tw, format, "", "", "", "", total, "", "")
} else {
const format = "%v\t%v\t%v\t%v\t%v\n"
fmt.Fprintf(tw, format, "Cluster", "Namespace", "Label selector", "Kind", "Count")
Expand All @@ -137,8 +137,8 @@ func PrintObjects(objects []K8sObject, age bool) {
total += o.count
fmt.Fprintf(tw, format, o.cluster, o.namespace, o.labelSelector, o.kind, o.count)
}
fmt.Fprintf(tw, format, "-----", "", "", "", "-----")
fmt.Fprintf(tw, format, "Total", "", "", "", total)
fmt.Fprintf(tw, format, "", "", "", "", "-----")
fmt.Fprintf(tw, format, "", "", "", "", total)
}

tw.Flush()
Expand Down

0 comments on commit 9766faa

Please sign in to comment.