[projects/pld-builder.new] queue.html: the last OK time beside a waiting build

arekm arekm at pld-linux.org
Thu Nov 19 19:16:54 CET 2026


commit aba85cb834308ae620226998ad7664787e17a621
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 19:12:58 2026 +0100

    queue.html: the last OK time beside a waiting build

 PLD_Builder/queue_html.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index e46df8f..bc65775 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -240,8 +240,8 @@ def builder_html(batch, name, request_id, history):
     if last:
         about = "\n".join(filter(None, [about, f"last OK build: {duration(last[1] - last[0])}, {exact(last[0])}"]))
         data += f" data-last={int(last[1] - last[0])}"
-        # beside a build that ran, to tell how long this one goes on
-        if took:
+        # beside a build that ran or waits, to tell how long this one goes on
+        if took or status == "?":
             last_ok = f"last OK time: {duration(last[1] - last[0])}"
 
     # only a batch skipped for a failed dependency never ran, so it has no log; SKIP_REQUESTED has one
@@ -289,7 +289,7 @@ LEGEND = """<h2>How to read a request</h2>
 <div class=batch>
 <div class=what>The next package of the request: they are built one after another.</div>
 <div class=builders>
-<div class="builder wait"><span class=who>builder</span><span class=state><b class="s wait">waiting</b></span><span class=span></span>
+<div class="builder wait"><span class=who>builder</span><span class=state><b class="s wait">waiting</b> (last OK time)</span><span class=span></span>
 <p>Not started yet.</p></div>
 <div class="builder run"><span class=who>builder</span><span class=state><b class="s run">building</b> (<b class=took>so far</b>, last OK time)</span>
 <span class=span>start → …</span>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/aba85cb834308ae620226998ad7664787e17a621



More information about the pld-cvs-commit mailing list