diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-19 07:11:42 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-19 07:11:42 -0200 |
commit | ec096a1d94455f9a5e6cb2d217a3a6d12b9b2c23 (patch) | |
tree | 98f1ab9fda67841f6d5597006e7820d100a657c5 /config | |
parent | e0547ab961736c52a6e759966a779cb6a772de6e (diff) | |
parent | 914a673b9db2d0407797f12db963f8338f3006c4 (diff) | |
download | pfsense-packages-ec096a1d94455f9a5e6cb2d217a3a6d12b9b2c23.tar.gz pfsense-packages-ec096a1d94455f9a5e6cb2d217a3a6d12b9b2c23.tar.bz2 pfsense-packages-ec096a1d94455f9a5e6cb2d217a3a6d12b9b2c23.zip |
Merge pull request #1185 from doktornotor/patch-9
Diffstat (limited to 'config')
-rw-r--r-- | config/lightsquid/sqstat.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/lightsquid/sqstat.class.php b/config/lightsquid/sqstat.class.php index 2f1dc9ba..a190557c 100644 --- a/config/lightsquid/sqstat.class.php +++ b/config/lightsquid/sqstat.class.php @@ -349,8 +349,9 @@ class squidstat { $is_time = time(); $curr_speed = 0; $avg_speed = 0; - if (isset($session_data[$con_id]) && $con_data == $session_data[$con_id]) { + if (isset($session_data[$con_id]) && !empty($session_data[$con_id])) { // if we have info about current connection, we do analyze its data current speed + $con_data = $session_data[$con_id]; $was_time = $con_data['time']; $was_size = $con_data['size']; if ($was_time && $was_size) { @@ -505,8 +506,9 @@ class squidstat { $con_id = $con['connection']; $is_time = time(); $curr_speed = $avg_speed = 0; - if (isset($session_data[$con_id]) && $con_data == $session_data[$con_id]) { + if (isset($session_data[$con_id]) && !empty($session_data[$con_id])) { // if we have info about current connection, we do analyze its data current speed + $con_data = $session_data[$con_id]; $was_time = $con_data['time']; $was_size = $con_data['size']; if ($was_time && $was_size) { |