Browse Source

Correct memory usage in anonymous report

Jakob Borg 11 years ago
parent
commit
8918de85fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/syncthing/usage_report.go

+ 1 - 1
cmd/syncthing/usage_report.go

@@ -51,7 +51,7 @@ func reportData(m *model.Model) map[string]interface{} {
 
 	var mem runtime.MemStats
 	runtime.ReadMemStats(&mem)
-	res["memoryUsageMiB"] = mem.Sys / 1024 / 1024
+	res["memoryUsageMiB"] = (mem.Sys - mem.HeapReleased) / 1024 / 1024
 
 	var perf float64
 	for i := 0; i < 5; i++ {