Skip to content

Commit

Permalink
Add Started to session data from /status (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebehr committed Dec 9, 2020
1 parent fe95195 commit e89b7ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Session struct {
VNC bool `json:"vnc"`
Screen string `json:"screen"`
Caps session.Caps `json:"caps"`
Started time.Time `json:"started"`
}

// Sessions - used count and individual sessions for quota user
Expand Down Expand Up @@ -182,6 +183,7 @@ func (config *Config) State(sessions *session.Map, limit, queued, pending int) *
VNC: vnc,
Screen: session.Caps.ScreenResolution,
Caps: session.Caps,
Started: session.Started,
}
if ctr != nil {
sess.Container = ctr.ID
Expand Down

0 comments on commit e89b7ab

Please sign in to comment.