Skip to content

Commit dce3134

Browse files
committed
fix(sessions): remove LastRaw column from session list display
1 parent 36a8be0 commit dce3134

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

client/command/sessions/sessions.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ func PrintSessions(sessions map[string]*client.Session, con *core.Console, isAll
122122
"Process": processName,
123123
"Sleep": fmt.Sprintf("%s [%.1f%%]", session.Timer.Expression, session.Timer.Jitter*100),
124124
"Last": formatTimeDiff(session.LastCheckin, session.IsAlive),
125-
"LastRaw": fmt.Sprintf("%020d", session.LastCheckin),
126125
"CreatedAt": time.Unix(session.CreatedAt, 0).Format("2006-01-02 15:04"),
127126
})
128127
rowEntries = append(rowEntries, row)
@@ -140,10 +139,8 @@ func PrintSessions(sessions map[string]*client.Session, con *core.Console, isAll
140139
table.NewColumn("PID", "PID", 7),
141140
table.NewColumn("Sleep", "Sleep", 12),
142141
table.NewColumn("Last", "Last", 8),
143-
table.NewColumn("LastRaw", "", 0),
144142
table.NewColumn("CreatedAt", "Created At", 16),
145143
}, common.ShouldUseStaticOutput(con))
146-
tableModel.SetAscSort("LastRaw")
147144
tableModel.SetRows(rowEntries)
148145
tableModel.SetMultiline()
149146
tableModel.SetHandle(func() {

0 commit comments

Comments
 (0)