From 97dda6a4bb07aca5bd6eb334f7761851b63f68b4 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 11 Aug 2014 22:10:15 +0200 Subject: [PATCH] Correct the memory stats in perfstats-*.csv --- cmd/syncthing/perfstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/perfstats.go b/cmd/syncthing/perfstats.go index 8711a64a..ffc78fa6 100644 --- a/cmd/syncthing/perfstats.go +++ b/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) } }