]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: fix benchmark json output
authorAndrew Gerrand <adg@golang.org>
Mon, 3 May 2010 08:35:32 +0000 (18:35 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 3 May 2010 08:35:32 +0000 (18:35 +1000)
Fixes #722.

R=rsc
CC=golang-dev
https://golang.org/cl/1065041

misc/dashboard/godashboard/gobuild.py

index 4a5b858c30b525e6572015e60db1a8fbeca2f882..aac90b3267a72060bb4b87542dddbd36c8d97dbf 100644 (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