Add 'Current' column to detail view
authorTero Marttila <terom@fixme.fi>
Wed, 03 Nov 2010 00:51:06 +0200
changeset 28 89a4d9879171
parent 27 85ff337aee11
child 29 c756e522c9ac
Add 'Current' column to detail view
rrdweb/graph.py
--- a/rrdweb/graph.py	Wed Nov 03 00:41:07 2010 +0200
+++ b/rrdweb/graph.py	Wed Nov 03 00:51:06 2010 +0200
@@ -77,25 +77,30 @@
         'VDEF:in_max=in,MAXIMUM',
         'VDEF:in_avg=in,AVERAGE',
         'VDEF:in_min=in,MINIMUM',
+        'VDEF:in_cur=in,LAST',
         'VDEF:out_max=out,MAXIMUM',
         'VDEF:out_avg=out,AVERAGE',
         'VDEF:out_min=out,MINIMUM',
+        'VDEF:out_cur=out,LAST',
 
         # legend/graph
         "COMMENT:%4s" % "",
         "COMMENT:%11s" % "Maximum",
         "COMMENT:%11s" % "Average",
-        "COMMENT:%11s\\l" % "Minimum",
+        "COMMENT:%11s" % "Minimum",
+        "COMMENT:%11s\\l" % "Current",
 
         "LINE1:in#0000FF:%4s" % "In",
         'GPRINT:in_max:%6.2lf %Sbps',
         'GPRINT:in_avg:%6.2lf %Sbps',
-        'GPRINT:in_min:%6.2lf %Sbps\\l',
+        'GPRINT:in_min:%6.2lf %Sbps',
+        'GPRINT:in_cur:%6.2lf %Sbps\\l',
 
         "LINE1:out#00CC00:%4s" % "Out",
         'GPRINT:out_max:%6.2lf %Sbps',
         'GPRINT:out_avg:%6.2lf %Sbps',
-        'GPRINT:out_min:%6.2lf %Sbps\\l',
+        'GPRINT:out_min:%6.2lf %Sbps',
+        'GPRINT:out_cur:%6.2lf %Sbps\\l',
         
         # mark
         "COMMENT:Generated %s\\r" % timestamp().replace(':', '\\:'),