Expose and use path separator (fixes #1163)

This commit is contained in:
Audrius Butkevicius
2014-12-14 23:12:12 +00:00
parent 5d173168cc
commit a2070d9ce4
4 changed files with 8 additions and 4 deletions

View File

@@ -449,6 +449,7 @@ func restGetSystem(w http.ResponseWriter, r *http.Request) {
}
cpuUsageLock.RUnlock()
res["cpuPercent"] = cpusum / 10
res["pathSeparator"] = string(filepath.Separator)
w.Header().Set("Content-Type", "application/json; charset=utf-8")
json.NewEncoder(w).Encode(res)