summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-06 21:10:46 -0400
committertkimia <tkimia@purdue.edu>2014-04-06 21:10:46 -0400
commit0f982ba511d4f38322f69a6aaed768181b4e2852 (patch)
treedc1c0c5ad74a1a08cf13074aff48bdf03d25ee11 /app/controllers/matches_controller.rb
parentf85943114dba527a1f87abb03229553472f57c0c (diff)
some more graphics
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index e773667..28bc512 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -9,7 +9,7 @@ class MatchesController < ApplicationController
def index
@matches = @tournament.matches
# width of SVG
- @width = 300 * (Math.log2(@matches.count).floor + 1) + 300;
+ @width = 300 * (Math.log2(@matches.count).floor + 1);
# height of SVG
@height = 200 * 2**Math.log2(@matches.count).floor + 100;
end