mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2012-11-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_netflow.php: Detect errors when retrieving stats. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7208 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b38af6f8d5
commit
dc1259f765
@ -1,3 +1,7 @@
|
|||||||
|
2012-11-29 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* include/functions_netflow.php: Detect errors when retrieving stats.
|
||||||
|
|
||||||
2012-11-29 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2012-11-29 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* include/functions_ui.php
|
* include/functions_ui.php
|
||||||
|
@ -492,6 +492,9 @@ function netflow_get_stats ($start_date, $end_date, $filter, $aggregate, $max, $
|
|||||||
$end_date = strtotime ($date." ".$time);
|
$end_date = strtotime ($date." ".$time);
|
||||||
$values[$i]['datetime'] = $end_date;
|
$values[$i]['datetime'] = $end_date;
|
||||||
$values[$i]['agg'] = $val[4];
|
$values[$i]['agg'] = $val[4];
|
||||||
|
if (! isset ($val[7])) {
|
||||||
|
return array ();
|
||||||
|
}
|
||||||
|
|
||||||
switch ($unit){
|
switch ($unit){
|
||||||
case "flows":
|
case "flows":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user