From 31046358ccce618fa0cc1443dbbdd58eb76adf22 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 22 Dec 2015 15:19:38 +0100 Subject: [PATCH] Add more informations in the debug status page * Number of VM in a project * Number of client connected --- gns3server/modules/project.py | 7 +++++++ gns3server/templates/status.html | 18 +++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/project.py b/gns3server/modules/project.py index 4e758406..26604066 100644 --- a/gns3server/modules/project.py +++ b/gns3server/modules/project.py @@ -459,6 +459,13 @@ class Project: self._listeners.remove(queue) + @property + def listeners(self): + """ + List of current clients listening for event in this projects + """ + return self._listeners + @asyncio.coroutine def list_files(self): """ diff --git a/gns3server/templates/status.html b/gns3server/templates/status.html index 40953637..bed8c797 100644 --- a/gns3server/templates/status.html +++ b/gns3server/templates/status.html @@ -6,11 +6,23 @@ The purpose of this page is to help for GNS3 debug.

Opened projects

-