summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjokkedk <joakim@jokke.dk>2008-06-06 16:33:30 +0000
committerjokkedk <joakim@jokke.dk>2008-06-06 16:33:30 +0000
commit3377b6af98b3727a1d8a08f212b1a68763194ffc (patch)
tree2950d709431a97969149a5db69b76803371a4edd
parent4431b550b294c2d4d9145e0c52beec1d11221c53 (diff)
downloadwebgrind-3377b6af98b3727a1d8a08f212b1a68763194ffc.zip
webgrind-3377b6af98b3727a1d8a08f212b1a68763194ffc.tar.gz
webgrind-3377b6af98b3727a1d8a08f212b1a68763194ffc.tar.bz2
- Width of breakdown graph
-rw-r--r--templates/index.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/index.phtml b/templates/index.phtml
index 39790e6..78e4823 100644
--- a/templates/index.phtml
+++ b/templates/index.phtml
@@ -46,9 +46,9 @@
var breakdown_sum = data.breakdown['internal']+data.breakdown['user']+data.breakdown['class'];
$("#breakdown").html(
'<img src="img/gradient_left.png" height="20" width="10">'+
- '<img title="internal functions" src="img/gradient_blue.png" height="20" width="'+Math.round(data.breakdown['internal']/breakdown_sum*300)+'">'+
- '<img title="class methods" src="img/gradient_green.png" height="20" width="'+Math.round(data.breakdown['class']/breakdown_sum*300)+'">'+
- '<img title="procedural functions" src="img/gradient_orange.png" height="20" width="'+Math.round(data.breakdown['user']/breakdown_sum*300)+'">'+
+ '<img title="internal functions" src="img/gradient_blue.png" height="20" width="'+Math.floor(data.breakdown['internal']/breakdown_sum*300)+'">'+
+ '<img title="class methods" src="img/gradient_green.png" height="20" width="'+Math.floor(data.breakdown['class']/breakdown_sum*300)+'">'+
+ '<img title="procedural functions" src="img/gradient_orange.png" height="20" width="'+Math.floor(data.breakdown['user']/breakdown_sum*300)+'">'+
'<img src="img/gradient_right.png" height="20" width="10">'+
'<div style="background:url(img/gradient_markers.png);position:relative;top:-20px;left:10px;width:301px;height:19px"></div>'
);