Commit 5610a024 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Counter wrapping handling bugfix

parent b033878b
......@@ -96,7 +96,7 @@ class Param(object):
self.last_time=t
self.last_value=value
return PR_OK,"OK",None
if value>self.last_value:
if value>=self.last_value:
v=(value-self.last_value)/(t-self.last_time)
else:
# Handle wrapping
......
Supports Markdown
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