From 3a36186f0351e21cc0e5501b7c82beada16c9828 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 13 Mar 2014 03:57:37 +0000 Subject: bitbake: toaster: Set display of "Cache attempt" column The "Cache attempt" column should display by default in the tasks table, but should be hidden by default in the time, CPU and Disk I/O tables. (Bitbake rev: dc96eecd2e8bef1b4d4fc500bf496b3edb91f808) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster') diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 7f75425af9..ba1aa95810 100644 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -578,7 +578,7 @@ def tasks_common(request, build_id, variant): tc_cache={ 'name':'Cache attempt', 'qhelp':'This column tells you if a task tried to restore output from the sstate-cache directory or mirrors, and what was the result: Succeeded, Failed or File not in cache', - 'clclass': 'cache_attempt', 'hidden' : 1, + 'clclass': 'cache_attempt', 'hidden' : 0, 'orderfield': _get_toggle_order(request, "sstate_result"), 'ordericon':_get_toggle_order_icon(request, "sstate_result"), 'filter' : { @@ -593,7 +593,7 @@ def tasks_common(request, build_id, variant): } } - if 'tasks' == variant: tc_cache['hidden']='0' + #if 'tasks' == variant: tc_cache['hidden']='0'; tc_time={ 'name':'Time (secs)', 'qhelp':'How long it took the task to finish, expressed in seconds', @@ -601,7 +601,7 @@ def tasks_common(request, build_id, variant): 'ordericon':_get_toggle_order_icon(request, "elapsed_time"), 'clclass': 'time_taken', 'hidden' : 1, } - if 'buildtime' == variant: tc_time['hidden']='0'; del tc_time['clclass'] + if 'buildtime' == variant: tc_time['hidden']='0'; del tc_time['clclass']; tc_cache['hidden']='1'; tc_cpu={ 'name':'CPU usage', 'qhelp':'Task CPU utilisation, expressed as a percentage', @@ -609,7 +609,7 @@ def tasks_common(request, build_id, variant): 'ordericon':_get_toggle_order_icon(request, "cpu_usage"), 'clclass': 'cpu_used', 'hidden' : 1, } - if 'cpuusage' == variant: tc_cpu['hidden']='0'; del tc_cpu['clclass'] + if 'cpuusage' == variant: tc_cpu['hidden']='0'; del tc_cpu['clclass']; tc_cache['hidden']='1'; tc_diskio={ 'name':'Disk I/O (ms)', 'qhelp':'Number of miliseconds the task spent doing disk input and output', @@ -617,7 +617,7 @@ def tasks_common(request, build_id, variant): 'ordericon':_get_toggle_order_icon(request, "disk_io"), 'clclass': 'disk_io', 'hidden' : 1, } - if 'diskio' == variant: tc_diskio['hidden']='0'; del tc_diskio['clclass'] + if 'diskio' == variant: tc_diskio['hidden']='0'; del tc_diskio['clclass']; tc_cache['hidden']='1'; context = { 'objectname': variant, -- cgit v1.2.3-54-g00ecf