Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1bca6cc authored by Jim Cromie's avatar Jim Cromie Committed by Arnaldo Carvalho de Melo
Browse files

perf stat: Suppress printing std-dev when its 0

For pretty output only (preserve column for cvs output), dont print
std-deviation when its 0.00.  Do this based upon value, instead of
checking for --no-aggr, since the stats could conceivably be computed
over the runs on each CPU, and theres no reason to preclude that.

Link: http://lkml.kernel.org/r/1315437244-3788-4-git-send-email-jim.cromie@gmail.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 19f47402
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ static void print_noise_pct(double total, double avg)

	if (csv_output)
		fprintf(output, "%s%.2f%%", csv_sep, pct);
	else
	else if (pct)
		fprintf(output, "  ( +-%6.2f%% )", pct);
}