equal
deleted
inserted
replaced
64 w(u'<h3>%s</h3>' % _('resources usage')) |
64 w(u'<h3>%s</h3>' % _('resources usage')) |
65 w(u'<table>') |
65 w(u'<table>') |
66 stats = repo.stats() |
66 stats = repo.stats() |
67 for element in sorted(stats): |
67 for element in sorted(stats): |
68 w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>' |
68 w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>' |
69 % (element, stats[element], |
69 % (element, xml_escame(unicode(stats[element])), |
70 element.endswith('percent') and '%' or '' )) |
70 element.endswith('percent') and '%' or '' )) |
71 w(u'</table>') |
71 w(u'</table>') |
72 if req.cnx._cnxtype == 'inmemory': |
72 if req.cnx._cnxtype == 'inmemory': |
73 w(u'<h3>%s</h3>' % _('opened sessions')) |
73 w(u'<h3>%s</h3>' % _('opened sessions')) |
74 sessions = repo._sessions.values() |
74 sessions = repo._sessions.values() |