summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-08 09:54:12 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-08 09:54:12 +0000
commit160b99981384e4225e84f98fd4f51d3ce3304ced (patch)
tree61d026f3c40d69efd5d8166b9f458c543edfed8c
parent58db3698388d5c952ed10d91d6d5b2120d649610 (diff)
downloadacf-rrdtool-160b99981384e4225e84f98fd4f51d3ce3304ced.tar.bz2
acf-rrdtool-160b99981384e4225e84f98fd4f51d3ce3304ced.tar.xz
Viewfile for graphs.
Hiding debug messages
-rw-r--r--rrdtool-viewgraph-html.lsp14
1 files changed, 14 insertions, 0 deletions
diff --git a/rrdtool-viewgraph-html.lsp b/rrdtool-viewgraph-html.lsp
new file mode 100644
index 0000000..755f3c5
--- /dev/null
+++ b/rrdtool-viewgraph-html.lsp
@@ -0,0 +1,14 @@
+<% local data, viewlibrary, page_info, session = ...
+require("viewfunctions")
+%>
+
+<%
+--[[ DEBUG INFORMATION
+io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
+io.write(html.cfe_unpack(data))
+io.write("</span>")
+--]]
+%>
+<PRE><%= data.descr %></PRE>
+<IMG SRC='<%= data.value %>' width='<%= data.graph.width or data.option.width %>' height='<%= data.graph.height or data.option.height %>'>
+