From: Michael Tremer Date: Tue, 30 Oct 2018 12:33:51 +0000 (+0000) Subject: fireinfo: Drop old virtualization stats X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae10710914b3464390089c174367a342b24ec576;p=ipfire.org.git fireinfo: Drop old virtualization stats Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 5345f147..b81d7187 100644 --- a/Makefile.am +++ b/Makefile.am @@ -150,7 +150,6 @@ templates_fireinfo_DATA = \ src/templates/fireinfo/stats-memory.html \ src/templates/fireinfo/stats-network.html \ src/templates/fireinfo/stats-oses.html \ - src/templates/fireinfo/stats-virtual.html \ src/templates/fireinfo/vendor.html \ src/templates/fireinfo/vendors.html diff --git a/src/templates/fireinfo/stats-virtual.html b/src/templates/fireinfo/stats-virtual.html deleted file mode 100644 index beb15d40..00000000 --- a/src/templates/fireinfo/stats-virtual.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends "../base.html" %} - -{% block title %}{{ _("Virtualization") }}{% end block %} - -{% block body %} - - - {% if virtual %} -
-
-

- IPFire is running very well in a virtual environment. -

-

- See this chart to get a clue about how many machines are running - virtually. -

- -
-
{{ _("Virtualised systems") }}
-
-
-
- {{ "%.2f" % (virtual * 100) }}% -
-
-
-
-
-
- {% end %} - -
-
-

{{ _("Hypervisors") }}

-

- This is a list of all hypervisor vendors that IPFire is running on. -

- -
- {% for name, percentage in hypervisors %} -
- {% if name == "unknown" %} - {{ _("Unknown") }} - {% elif name == "VMWare" %} - VMware - {% else %} - {{ name }} - {% end %} -
-
-
-
- {{ "%.2f" % (percentage * 100) }}% -
-
-
- {% end %} -
-
-
-{% end block %} diff --git a/src/templates/fireinfo/stats.html b/src/templates/fireinfo/stats.html index c755df9c..4f703858 100644 --- a/src/templates/fireinfo/stats.html +++ b/src/templates/fireinfo/stats.html @@ -33,10 +33,6 @@

{{ _("Memory") }}

- -

- {{ _("Virtualization") }} -

diff --git a/src/web/__init__.py b/src/web/__init__.py index bcb3b9c3..a34f281f 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -209,7 +209,6 @@ class Application(tornado.web.Application): (r"/statistics/memory", fireinfo.StatsMemoryHandler), (r"/statistics/networking", fireinfo.StatsNetworkingHandler), (r"/statistics/releases", fireinfo.StatsReleasesHandler), - (r"/statistics/virtualization", fireinfo.StatsVirtualHandler), ]) # i-use.ipfire.org diff --git a/src/web/fireinfo.py b/src/web/fireinfo.py index 03cc15ca..03b28a61 100644 --- a/src/web/fireinfo.py +++ b/src/web/fireinfo.py @@ -253,16 +253,6 @@ class StatsReleasesHandler(BaseHandler): return self.render("fireinfo/stats-oses.html", **data) -class StatsVirtualHandler(BaseHandler): - def get(self): - data = { - "hypervisors" : self.fireinfo.get_hypervisor_map(when=self.when), - "virtual" : self.fireinfo.get_virtual_ratio(when=self.when), - } - - return self.render("fireinfo/stats-virtual.html", **data) - - class StatsGeoHandler(BaseHandler): def get(self): return self.render("fireinfo/stats-geo.html",