From e89b7ab6c42b602bc897779b92512d35c59fe807 Mon Sep 17 00:00:00 2001 From: nebehr Date: Wed, 9 Dec 2020 15:00:33 +0300 Subject: [PATCH] Add Started to session data from /status (#1031) --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index 58a90248..9e555cdf 100644 --- a/config/config.go +++ b/config/config.go @@ -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 @@ -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