diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-03-13 03:57:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-21 14:47:41 +0000 |
commit | dc96eecd2e8bef1b4d4fc500bf496b3edb91f808 (patch) | |
tree | 8808936163d3f51087074f79fbc0d0362716d0fa /lib | |
parent | 0d5e342d8878d8aff0ffe723be376845cccd8720 (diff) | |
download | bitbake-dc96eecd2e8bef1b4d4fc500bf496b3edb91f808.tar.gz |
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.
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/toaster/toastergui/views.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py index 7f75425af..ba1aa9581 100644 --- a/lib/toaster/toastergui/views.py +++ b/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 <code>sstate-cache</code> 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, |