2011-01-07 Sancho Lerena <slerena@artica.es>

* util/pandora_xml_stress.pl: There is no reason why proc
        modules cannot be redefined to operate with min/max.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3723 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-01-07 00:01:13 +00:00
parent 63b15d13db
commit e46c9e0d2d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-07 Sancho Lerena <slerena@artica.es>
* util/pandora_xml_stress.pl: There is no reason why proc modules
cannot be redefined to operate with min/max
2010-12-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm, lib/PandoraFMS/Core.pm: Removed calls to

View File

@ -195,7 +195,7 @@ sub generate_random_data ($$$$$) {
# Proc
if ($module_type =~ m/proc/) {
return int rand (2);
return int (rand ($max - $min + 1) + $min);
}
# Generic data