dashboard: fix benchmark json output

Fixes #722.

R=rsc
CC=golang-dev
https://golang.org/cl/1065041
This commit is contained in:
Andrew Gerrand 2010-05-03 18:35:32 +10:00
parent 3c32300c4d
commit 249c49ed3c

View file

@ -575,7 +575,7 @@ class GetBenchmarks(webapp.RequestHandler):
sep = "\n\t"
for builder, iter, ns in bybuilder:
self.response.out.write('%s{ "builder": "%s", "iterations": %s, "nsperop": %s }' %
(sep, builder, str(iter).replace("L", ""), str(nsperop).replace("L", "")))
(sep, builder, str(iter).replace("L", ""), str(ns).replace("L", "")))
sep = ",\n\t"
self.response.out.write('\n}\n')
return