Don't show how long a machine has been idle
Without an index on (machine, stoptime desc), this requires a sequential scan. And adding a whole index for this seems overkill. (Possibly the queue runner could maintain this info more efficiently.)
This commit is contained in:
@ -41,11 +41,7 @@
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF idle == 1 %]
|
||||
[% IF m.value.idle %]
|
||||
<tr><td colspan="6">Idle for [% INCLUDE renderDuration duration = curTime - m.value.idle %]</td></tr>
|
||||
[% ELSE %]
|
||||
<tr><td colspan="6">Never used</td></tr>
|
||||
[% END %]
|
||||
<tr><td colspan="6">Idle</td></tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
[% END %]
|
||||
|
Reference in New Issue
Block a user