Module: check_mk
Branch: master
Commit: 2a117031ff745dbd876952421ec3c1e009b91c01
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a117031ff745d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Apr 19 17:17:19 2015 +0200
Use smaller font for hover graphs
---
web/htdocs/metrics.py | 2 +-
web/plugins/icons/builtin.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 8e1cc3f..e1a17d3 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -985,7 +985,7 @@ def page_show_graph():
end_time = time.time()
start_time = end_time - 8 * 3600
- htmlcode = render_time_graph(row, start_time, end_time, size=(30, 10),
show_legend=False, graph_id_prefix="hover")
+ htmlcode = render_time_graph(row, start_time, end_time, size=(30, 10),
font_size=8, show_legend=False, graph_id_prefix="hover")
if htmlcode:
html.write(htmlcode)
return
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 1ebb244..4865126 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -232,6 +232,7 @@ def pnp_icon(row, what):
else:
url = ""
+ # TODO: Import in function is not good
import metrics
if not hasattr(metrics, 'render_graph_html'):
# Directly ask PNP for all data, don't try to use the new graph fetching
mechanism