mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
The min, max limits for agent modules were exclusives, now are inclusives - #770
This commit is contained in:
parent
ce179c39aa
commit
f0ef304c38
@ -368,7 +368,7 @@ Pandora_Module::getDataOutput (Pandora_Data *data) {
|
||||
}
|
||||
|
||||
if (this->has_limits) {
|
||||
if (value >= this->max || value <= this->min) {
|
||||
if (value > this->max || value < this->min) {
|
||||
pandoraLog ("The returned value was not in the interval on module %s",
|
||||
this->module_name.c_str ());
|
||||
throw Value_Error ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user