mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-13 00:58:32 +00:00
Reflect memory returned to OS in RAM Utilization
This commit is contained in:
parent
13291ad481
commit
5e237aecae
@ -384,7 +384,7 @@ func restGetSystem(w http.ResponseWriter, r *http.Request) {
|
|||||||
res["myID"] = myID.String()
|
res["myID"] = myID.String()
|
||||||
res["goroutines"] = runtime.NumGoroutine()
|
res["goroutines"] = runtime.NumGoroutine()
|
||||||
res["alloc"] = m.Alloc
|
res["alloc"] = m.Alloc
|
||||||
res["sys"] = m.Sys
|
res["sys"] = m.Sys - m.HeapReleased
|
||||||
res["tilde"] = expandTilde("~")
|
res["tilde"] = expandTilde("~")
|
||||||
if cfg.Options.GlobalAnnEnabled && discoverer != nil {
|
if cfg.Options.GlobalAnnEnabled && discoverer != nil {
|
||||||
res["extAnnounceOK"] = discoverer.ExtAnnounceOK()
|
res["extAnnounceOK"] = discoverer.ExtAnnounceOK()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user