<tr> <td>Domains</td> <td><% #count (#domain stats) %></td> <td><% #minutes (#domain stats) %></td> </tr>
<tr> <td>Mailing lists</td> <td><% #count (#mailingList stats) %></td> <td><% #minutes (#mailingList stats) %></td> </tr>
<tr> <td>Security</td> <td><% #count (#sec stats) %></td> <td><% #minutes (#sec stats) %></td> </tr>
-<tr> <td>Miscellaneous</td> <td><% #count (#closed (#misc stats)) %></td> <td><% #minutes (#closed (#misc stats)) %></td> </tr>
+<!--tr> <td>Miscellaneous</td> <td><% #count (#closed (#misc stats)) %></td> <td><% #minutes (#closed (#misc stats)) %></td> </tr-->
</table>
-<p>Additionally, <% #count (#pending (#misc stats)) %> miscellaneous support requests placed in this period have at some time been marked as pending or closed, and it took on average <% #minutes (#pending (#misc stats)) %> minutes to do so.</p>
+<!--p>Additionally, <% #count (#pending (#misc stats)) %> miscellaneous support requests placed in this period have at some time been marked as pending or closed, and it took on average <% #minutes (#pending (#misc stats)) %> minutes to do so.</p-->
<% end %>
fun gradeRow s = mkGradeRow (C.oneRow db s)
fun default tab =
- gradeRow ($`SELECT COUNT(*), AVG(cstamp - stamp)
+ gradeRow ($`SELECT COUNT(*), EXTRACT(MINUTE FROM AVG(cstamp - stamp))
FROM ^tab
WHERE stamp >= CURRENT_TIMESTAMP - interval '^(C.intToSql days) DAYS'
AND cstamp IS NOT NULL`)
in
{misc = {pending = gradeRow
- ($`SELECT COUNT(*), AVG(COALESCE(pstamp, cstamp) - stamp)
+ ($`SELECT COUNT(*), EXTRACT(MINUTE FROM AVG(COALESCE(pstamp, cstamp) - stamp))
FROM SupIssue
WHERE stamp >= CURRENT_TIMESTAMP - interval '^(C.intToSql days) DAYS'
AND COALESCE(pstamp, cstamp) IS NOT NULL`),
closed = gradeRow
- ($`SELECT COUNT(*), AVG(cstamp - stamp)
+ ($`SELECT COUNT(*), EXTRACT(MINUTE FROM AVG(cstamp - stamp))
FROM SupIssue
WHERE stamp >= CURRENT_TIMESTAMP - interval '^(C.intToSql days) DAYS'
AND cstamp IS NOT NULL`)},