Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Show the total from enqueue to finish for a finished run

4489805d9d86920f41469f281c91a19acb904e58 · Keenan Nemetz · 9d ago · parent aa38f6b2

Show the total from enqueue to finish for a finished run

A finished row's one clock should be the whole job, not just the part after the
first lease: the queue wait and the run are the same job, and the phases add up
to it. A run still in progress keeps the phase clock it is in.

server/web/templates/components.html +6−5

@@ -166,10 +166,11 @@
166 166 {{/* The timing line under a job on the overview, the runs tab, or a change's
167 167 checks. A job has one clock, and which one it is follows the phase: a queued
168 168 job shows its queue wait, a running job its run time, and a finished job the
169 total it took. The label is what makes a bare number readable, and a waiting
170 or running value keeps counting in app.js, so the row stays current without
171 asking the server for a clock every second. The run page keeps the separate
172 duration and queue-wait cards: that is the page for both numbers. */}}
169 total from enqueue to finish. The label is what makes a bare number
170 readable, and a waiting or running value keeps counting in app.js, so the
171 row stays current without asking the server for a clock every second. The
172 run page keeps the separate duration and queue-wait cards: that is the page
173 for both numbers. */}}
173 174 {{define "run_times"}}
174 175 {{if .Started.IsZero}}
175 176 {{if .Finished.IsZero}}
@@ -180,7 +181,7 @@
180 181 {{else if .Finished.IsZero}}
181 182 <span class="side-time">running <span data-clock-from="{{.Started.Unix}}">{{duration .Duration}}</span></span>
182 183 {{else}}
183 <span class="side-time">took {{duration .Duration}}</span>
184 <span class="side-time">total {{duration .Total}}</span>
184 185 {{end}}
185 186 {{end}}
186 187