Browse Source

Correct the memory stats in perfstats-*.csv

Jakob Borg 11 years ago
parent
commit
97dda6a4bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/syncthing/perfstats.go

+ 1 - 1
cmd/syncthing/perfstats.go

@@ -40,6 +40,6 @@ func savePerfStats(file string) {
 
 		startms := int(t.Sub(t0).Seconds() * 1000)
 
-		fmt.Fprintf(fd, "%d\t%f\t%d\t%d\n", startms, cpuUsagePercent, memstats.Alloc, memstats.Sys)
+		fmt.Fprintf(fd, "%d\t%f\t%d\t%d\n", startms, cpuUsagePercent, memstats.Alloc, memstats.Sys-memstats.HeapReleased)
 	}
 }