From f6ee798603d5e4d939a6f6f1555c3dd8f06d1084 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 8 Jan 2024 17:59:23 +0100 Subject: [PATCH] implement several changes in top-n connection report item --- pandora_console/include/functions_netflow.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_netflow.php b/pandora_console/include/functions_netflow.php index c4d6b4dfe0..51b74c59b0 100644 --- a/pandora_console/include/functions_netflow.php +++ b/pandora_console/include/functions_netflow.php @@ -349,8 +349,9 @@ function netflow_top_n_table(array $data, int $total_bytes, bool $show_extended= $table->head[0] = ''.__('Source IP').''; $table->head[1] = ''.__('Destination IP').''; $table->head[2] = ''.__('Bytes').''; - $table->head[3] = ''.__('% Traffic').''; - $table->head[4] = ''.__('Avg. Throughput').''; + $table->head[3] = ''.__('Packets').''; + $table->head[4] = ''.__('% Traffic').''; + $table->head[5] = ''.__('Avg. Throughput').''; $table->style[0] = 'padding: 4px'; } else { $table->head[0] = ''.__('Source IP').''; @@ -378,7 +379,8 @@ function netflow_top_n_table(array $data, int $total_bytes, bool $show_extended= $table->data[$i][6] = $value['traffic'].' %'; } else { $table->data[$i][2] = network_format_bytes($value['bytes']); - $table->data[$i][3] = $value['traffic'].' %'; + $table->data[$i][3] = network_format_bytes($value['ipackages']); + $table->data[$i][4] = $value['traffic'].' %'; } $units = [ @@ -397,7 +399,7 @@ function netflow_top_n_table(array $data, int $total_bytes, bool $show_extended= if ($show_extended === true) { $table->data[$i][7] = round($value['bps'], 2).' '.$units[$pow]; } else { - $table->data[$i][4] = round($value['bps'], 2).' '.$units[$pow]; + $table->data[$i][5] = round($value['bps'], 2).' '.$units[$pow]; } $i++;