Average makes more sense than max
This commit is contained in:
2
test.py
2
test.py
@@ -47,7 +47,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
else:
|
else:
|
||||||
title = 'monthly'
|
title = 'monthly'
|
||||||
startstr = '--start=end-1M'
|
startstr = '--start=end-1M'
|
||||||
data = rrdtool.graphv("-", startstr, "--title=" + title, "DEF:in=test.rrd:net_dnat:MAX", "DEF:out=test.rrd:loc-net:MAX", "CDEF:result_in=in,UN,0,in,IF", "CDEF:tmp_out=out,UN,0,out,IF", "CDEF:result_out=tmp_out,-1,*", "AREA:result_in#00ff00:in", "AREA:result_out#0000ff:out")
|
data = rrdtool.graphv("-", startstr, "--title=" + title, "DEF:in=test.rrd:net_dnat:AVERAGE", "DEF:out=test.rrd:loc-net:AVERAGE", "CDEF:result_in=in,UN,0,in,IF", "CDEF:tmp_out=out,UN,0,out,IF", "CDEF:result_out=tmp_out,-1,*", "AREA:result_in#00ff00:in", "AREA:result_out#0000ff:out")
|
||||||
#, "--width", "1024", "--height", "600"
|
#, "--width", "1024", "--height", "600"
|
||||||
self.wfile.write(data['image'])
|
self.wfile.write(data['image'])
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user