[gnome-ostree] autobuilder: Show running tasks with []
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] autobuilder: Show running tasks with []
- Date: Fri, 15 Mar 2013 14:38:27 +0000 (UTC)
commit de0b71d45a0039949b6a08a6e7d9eb45e6d0a826
Author: Colin Walters <walters verbum org>
Date: Fri Mar 15 10:14:08 2013 -0400
autobuilder: Show running tasks with []
src/js/builtins/autobuilder.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/js/builtins/autobuilder.js b/src/js/builtins/autobuilder.js
index 907e92c..1100fcc 100644
--- a/src/js/builtins/autobuilder.js
+++ b/src/js/builtins/autobuilder.js
@@ -121,7 +121,10 @@ const Autobuilder = new Lang.Class({
let taskstateList = this._taskmaster.getTaskState();
for (let i = 0; i < taskstateList.length; i++) {
let taskstate = taskstateList[i];
- newStatus += (taskstate.task.name + " ");
+ if (taskstate.running)
+ newStatus += ("[" + taskstate.task.name + "] ");
+ else
+ newStatus += (taskstate.task.name + " ");
}
if (newStatus == "")
newStatus = "[idle]";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]