web/views/management.py
changeset 10309 35bf741203d6
parent 9034 cc3442054e48
child 10411 4ee15441f2eb
--- a/web/views/management.py	Wed Apr 22 11:00:50 2015 +0200
+++ b/web/views/management.py	Tue Feb 10 12:18:38 2015 +0100
@@ -182,6 +182,13 @@
 
     def call(self):
         stats = self._cw.call_service('repo_stats')
+        stats['looping_tasks'] = ', '.join('%s (%s seconds)' % (n, i) for n, i in stats['looping_tasks'])
+        stats['threads'] = ', '.join(sorted(stats['threads']))
+        for k in stats:
+            if k in ('extid_cache_size', 'type_source_cache_size'):
+                continue
+            if k.endswith('_cache_size'):
+                stats[k] = '%s / %s' % (stats[k]['size'], stats[k]['maxsize'])
         results = []
         for element in stats:
             results.append(u'%s %s' % (element, stats[element]))