aboutsummaryrefslogtreecommitdiffhomepage
path: root/print.go
diff options
context:
space:
mode:
Diffstat (limited to 'print.go')
-rw-r--r--print.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/print.go b/print.go
index 923bd04a..a1a29709 100644
--- a/print.go
+++ b/print.go
@@ -265,9 +265,11 @@ func printPs(output io.Writer, now time.Time, s state.Store, short, flagJSON boo
as := "(No configuration information)"
if e.Config != nil {
as = strconv.Itoa(e.Config.Confinement.AppID)
- if e.Config.ID != "" {
- as += " (" + e.Config.ID + ")"
+ id := e.Config.ID
+ if id == "" {
+ id = "uk.gensokyo.fortify." + e.s[:8]
}
+ as += " (" + id + ")"
}
t.Printf("\t%s\t%d\t%s\t%s\n",
e.s[:8], e.PID, as, now.Sub(e.Time).Round(time.Second).String())