Merge pull request #11291 from ahmetalpbalkan/info/system-date

Add system time to /info
This commit is contained in:
moxiegirl
2015-03-11 09:43:43 -07:00
8 changed files with 54 additions and 2 deletions
+2
View File
@@ -3,6 +3,7 @@ package daemon
import (
"os"
"runtime"
"time"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/autogen/dockerversion"
@@ -76,6 +77,7 @@ func (daemon *Daemon) CmdInfo(job *engine.Job) engine.Status {
v.SetBool("Debug", os.Getenv("DEBUG") != "")
v.SetInt("NFd", utils.GetTotalUsedFds())
v.SetInt("NGoroutines", runtime.NumGoroutine())
v.Set("SystemTime", time.Now().Format(time.RFC3339Nano))
v.Set("ExecutionDriver", daemon.ExecutionDriver().Name())
v.SetInt("NEventsListener", env.GetInt("count"))
v.Set("KernelVersion", kernelVersion)