diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-01-16 12:22:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 21:01:04 +0000 |
commit | b0b1acbe623c1c126af2abc1cc332d993dcaf15c (patch) | |
tree | 594c00eebae09944d4f52f23d6b36cbe09ff5640 /bitbake/lib/bb/ui/buildinfohelper.py | |
parent | d27c7f26d39b66c41c1b09d6b5875e957045355d (diff) | |
download | poky-b0b1acbe623c1c126af2abc1cc332d993dcaf15c.tar.gz |
bitbake: toaster: Toaster GUI Build and Dashboard pages fixes
THis is a large set of fixes for the generic table, Build and
Dashboard pages.
Among the fixes:
* the table remembers which columns to show across refreshes,
based on saving the settings in a cookie
* added column timespent for a build which is a denormalization
of the completed_on - started_on information due to limits in
computing datetime differences in the SQL engine
* fixed formatting of the time differences
* various sorting header links fixed
* correct error and warning CSS classes applied to the
respective rows
* fixes multiple divide-by-zero error in displaying duration
estimations
(Bitbake rev: 61e3dee55ac577fce1c0ae0fe7e0d3cf644e8ae6)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index b90e915a1a..3b4d7c9c10 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -75,6 +75,7 @@ class ORMWrapper(object): | |||
75 | outcome = Build.FAILED | 75 | outcome = Build.FAILED |
76 | 76 | ||
77 | build.completed_on = datetime.datetime.now() | 77 | build.completed_on = datetime.datetime.now() |
78 | build.timespent = int((build.completed_on - build.started_on).total_seconds()) | ||
78 | build.errors_no = errors | 79 | build.errors_no = errors |
79 | build.warnings_no = warnings | 80 | build.warnings_no = warnings |
80 | build.outcome = outcome | 81 | build.outcome = outcome |
@@ -387,7 +388,7 @@ class BuildInfoHelper(object): | |||
387 | for i in string.split(): | 388 | for i in string.split(): |
388 | if i not in ret: | 389 | if i not in ret: |
389 | ret.append(i) | 390 | ret.append(i) |
390 | return " ".join(ret) | 391 | return " ".join(sorted(ret)) |
391 | 392 | ||
392 | 393 | ||
393 | ################################ | 394 | ################################ |