add sum max/avg/min to overview graphs
authorTero Marttila <terom@fixme.fi>
Tue, 08 Dec 2009 20:54:13 +0200
changeset 7 804243b0bcb9
parent 6 36b9aa4a7697
child 8 37990ed8912b
add sum max/avg/min to overview graphs
rrdweb/graph.py
--- a/rrdweb/graph.py	Tue Dec 08 20:53:55 2009 +0200
+++ b/rrdweb/graph.py	Tue Dec 08 20:54:13 2009 +0200
@@ -49,8 +49,18 @@
         width               = 600,
         height              = 50,
     ), [
-        "LINE1:in#0000FF:%4s" % "In",
-        "LINE1:out#00CC00:%4s" % "Out",
+        "CDEF:all=in,out,+",
+
+        "VDEF:max=all,MAXIMUM",
+        "VDEF:avg=all,AVERAGE",
+        "VDEF:min=all,MINIMUM",
+
+        "LINE1:in#0000FF:In",
+        "LINE1:out#00CC00:Out",
+
+        "GPRINT:max:%6.2lf %Sbps max",
+        "GPRINT:avg:%6.2lf %Sbps avg",
+        "GPRINT:min:%6.2lf %Sbps min\\l",
     ]
 
 def detail_opts () :