From b666a3c308261ed1bc347a467befbb447c6ced07 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 22 Dec 2022 16:32:17 +0100 Subject: [PATCH] #10044 Fix limit on rows showing on monitoring snmp console traps --- pandora_console/include/class/SnmpConsole.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/SnmpConsole.class.php b/pandora_console/include/class/SnmpConsole.class.php index 476f5011ea..9aae307bc5 100644 --- a/pandora_console/include/class/SnmpConsole.class.php +++ b/pandora_console/include/class/SnmpConsole.class.php @@ -576,7 +576,8 @@ class SnmpConsole extends HTML // Catch post parameters. $start = get_parameter('start', 0); $length = get_parameter('length', $config['block_size']); - + // There is a limit of (2^32)^2 (18446744073709551615) rows in a MyISAM table, show for show all use max nrows. + $length = ($length != '-1') ? $length : '18446744073709551615'; $order = get_datatable_order(true); $filters = get_parameter('filter', []);