Commit f5fb9d87 authored by Claudemir Todo Bom's avatar Claudemir Todo Bom
Browse files

* avoid repeating values on rrd / logrotation bug

parent 1ce1bd6e
......@@ -34,8 +34,8 @@ statusFile = sys.argv[2]
status = loadStatus(statusFile)
config = loadConfig(configFile)
fileLastUpdate = status["lastupdate"]
lastupdate = fileLastUpdate
origLastupdate = status["lastupdate"]
lastupdate = origLastupdate
ld = LogDigest(config,status)
......@@ -67,7 +67,7 @@ for k in ld.counters:
buffervalues = ""
divider = ""
if int(k)-secsloop > int(lastupdate) and int(k)-secsloop > int(fileLastUpdate):
if int(k)-secsloop > int(lastupdate) and int(k)-secsloop > int(origLastupdate):
myRRD.bufferValue( int(k)-secsloop , zeroes )
lastupdate = k
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment