summaryrefslogtreecommitdiff
path: root/tablePackages.go
diff options
context:
space:
mode:
Diffstat (limited to 'tablePackages.go')
-rw-r--r--tablePackages.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tablePackages.go b/tablePackages.go
index c4ec53c..d317331 100644
--- a/tablePackages.go
+++ b/tablePackages.go
@@ -3,6 +3,7 @@
package zoopb
import (
+ "go.wit.com/lib/cobol"
"go.wit.com/log"
)
@@ -38,6 +39,11 @@ func (pb *Packages) MakeDefaultTable() *PackagesTable {
})
col.Width = 6
+ col = t.AddStringFunc("age", func(p *Package) string {
+ return cobol.Since(p.Ctime)
+ })
+ col.Width = 5
+
col = t.AddArchitecture()
col.Width = 8