File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
from dashboard .colors import get_color
20
20
21
21
22
+ # Constants
23
+ BUBBLE_SIZE_RATIO = 1250
24
+
25
+
22
26
@blueprint .route ('/result/<end>/heatmap' )
23
27
@secure
24
28
def result_heatmap (end ):
@@ -198,8 +202,8 @@ def get_hits_per_hour(end):
198
202
def get_time_per_version_per_user (end , versions ):
199
203
user_data = {}
200
204
data = [t .execution_time for t in get_all_measurement (end )]
201
- # compute the average for determining the default size
202
- average = math .sqrt (sum (data ) / len (data ))/ 1250
205
+ # compute the average for determining the size of the bubbles in the plot
206
+ average = math .sqrt (sum (data ) / len (data )) / BUBBLE_SIZE_RATIO
203
207
204
208
for d in [str (c .group_by ) for c in get_endpoint_column (end , FunctionCall .group_by )]:
205
209
user_data [d ] = {}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def wrapper(*args, **kwargs):
37
37
38
38
39
39
def is_admin ():
40
- return session and session .pop (config .link + '_admin' , False )
40
+ return session and session .get (config .link + '_admin' )
41
41
42
42
43
43
def check_login (name , password ):
You can’t perform that action at this time.
0 commit comments