Hi and lo values with units (7G, 1G) cause an error. This fixes the validation.
ERROR PHP ERROR in Plugin 'thold': Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /var/www/html/cacti/plugins/thold/thold_functions.php:5432 Stack trace: #0 /var/www/html/cacti/plugins/thold/thold_functions.php(5432): round() #1 /var/www/html/cacti/plugins/thold/thold.php(96): save_thold() #2 {main} thrown in file: /var/www/html/cacti/plugins/thold/thold_functions.php on line: 5432
Hi and lo values with units (7G, 1G) cause an error. This fixes the validation.
ERROR PHP ERROR in Plugin 'thold': Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /var/www/html/cacti/plugins/thold/thold_functions.php:5432 Stack trace: #0 /var/www/html/cacti/plugins/thold/thold_functions.php(5432): round() #1 /var/www/html/cacti/plugins/thold/thold.php(96): save_thold() #2 {main} thrown in file: /var/www/html/cacti/plugins/thold/thold_functions.php on line: 5432