From 9bdcadf6345aba3a939e9e58d85b89dbe9d44bc9 Mon Sep 17 00:00:00 2001 From: kozec Date: Wed, 26 Aug 2015 00:36:46 +0200 Subject: [PATCH] Added startTime into system/status REST call --- cmd/syncthing/gui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 0dafaaf07..0c27c2137 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -642,6 +642,7 @@ func (s *apiSvc) getSystemStatus(w http.ResponseWriter, r *http.Request) { res["cpuPercent"] = cpusum / float64(len(cpuUsagePercent)) / float64(runtime.NumCPU()) res["pathSeparator"] = string(filepath.Separator) res["uptime"] = int(time.Since(startTime).Seconds()) + res["startTime"] = startTime w.Header().Set("Content-Type", "application/json; charset=utf-8") json.NewEncoder(w).Encode(res)