Fix color for open tasks
authorChristian Weiske <cweiske@cweiske.de>
Fri, 21 Apr 2017 16:07:52 +0000 (18:07 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 21 Apr 2017 16:07:52 +0000 (18:07 +0200)
data/templates/status.htm

index b4cf71d..6505818 100644 (file)
@@ -31,7 +31,7 @@
    <td style="text-align: right">{{esStatus.size_human}}</td>
   </tr>
 
    <td style="text-align: right">{{esStatus.size_human}}</td>
   </tr>
 
-  <tr class="{%if 0 > gearStatus.tasks %}warning{%endif%}">
+  <tr class="{%if 0 != gearStatus.tasks %}warning{%endif%}">
    <th rowspan="3">Gearman</th>
    <td>Open tasks</td>
    <td style="text-align: right">{{gearStatus.tasks}}</td>
    <th rowspan="3">Gearman</th>
    <td>Open tasks</td>
    <td style="text-align: right">{{gearStatus.tasks}}</td>