web/app/models/benchmark_result.rb
branchmh_highcharts_spike
changeset 131 6b91c5b58be4
parent 110 02126b7e1cbb
child 173 6c00663e6182
--- a/web/app/models/benchmark_result.rb	Fri Jul 12 13:33:58 2013 +0200
+++ b/web/app/models/benchmark_result.rb	Wed Jul 17 21:05:40 2013 +0200
@@ -28,4 +28,8 @@
     benchmark_durations.map { |duration| duration.duration }.max
   end
 
+  def to_json
+    [ created_at.to_i * 1000, min_duration ]
+  end
+
 end