... | ... |
@@ -57,7 +57,7 @@ def createRrdFile(): |
57 | 57 |
|
58 | 58 |
strFmt = ("rrdtool create %s --step %s " |
59 | 59 |
"DS:CPM:GAUGE:%s:U:U DS:SvperHr:GAUGE:%s:U:U " |
60 |
- "RRA:AVERAGE:0.5:1:%s RRA:AVERAGE:0.5:%s:%s") |
|
60 |
+ "RRA:LAST:0.5:1:%s RRA:LAST:0.5:%s:%s") |
|
61 | 61 |
|
62 | 62 |
strCmd = strFmt % (_RRD_FILE, _DATABASE_UPDATE_INTERVAL, \ |
63 | 63 |
heartBeat, heartBeat, rrd24hrNumRows, rra1yrNumPDP, rrd1yearNumRows) |
... | ... |
@@ -282,7 +282,7 @@ def createGraph(fileName, dataItem, gLabel, gTitle, gStart, lower, upper, addTre |
282 | 282 |
|
283 | 283 |
# Show the data, or a moving average trend line over |
284 | 284 |
# the data, or both. |
285 |
- strCmd += "DEF:%s=%s:%s:AVERAGE " % (dataItem, _RRD_FILE, dataItem) |
|
285 |
+ strCmd += "DEF:%s=%s:%s:LAST " % (dataItem, _RRD_FILE, dataItem) |
|
286 | 286 |
|
287 | 287 |
if addTrend == 0 or addTrend == 2: |
288 | 288 |
strCmd += "LINE1:%s\#0400ff " % (dataItem) |