aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/lightsquid/sqstat.class.php6
-rw-r--r--pkg_config.10.xml2
-rw-r--r--pkg_config.8.xml2
-rw-r--r--pkg_config.8.xml.amd642
4 files changed, 7 insertions, 5 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) {
diff --git a/pkg_config.10.xml b/pkg_config.10.xml
index 18671ffe..dc75903f 100644
--- a/pkg_config.10.xml
+++ b/pkg_config.10.xml
@@ -603,7 +603,7 @@
</descr>
<website>http://lightsquid.sf.net/</website>
<category>Network Management</category>
- <version>2.42</version>
+ <version>2.43</version>
<maintainer>dv_serg@mail.ru</maintainer>
<port_category>www</port_category>
<run_depends>libexec/lightsquid/ip2name.list:www/lightsquid</run_depends>
diff --git a/pkg_config.8.xml b/pkg_config.8.xml
index 95e9f097..3dd9bd89 100644
--- a/pkg_config.8.xml
+++ b/pkg_config.8.xml
@@ -621,7 +621,7 @@
<descr>High performance web proxy report (LightSquid). Proxy realtime stat (SQStat). Requires squid HTTP proxy.</descr>
<website>http://lightsquid.sf.net/</website>
<category>Network Report</category>
- <version>2.42</version>
+ <version>2.43</version>
<maintainer>dv_serg@mail.ru</maintainer>
<depends_on_package_base_url>https://files.pfsense.org/packages/8/All/</depends_on_package_base_url>
<depends_on_package>lightsquid-1.8_2.tbz</depends_on_package>
diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64
index 3edabc75..b3ccdf01 100644
--- a/pkg_config.8.xml.amd64
+++ b/pkg_config.8.xml.amd64
@@ -608,7 +608,7 @@
<descr>High performance web proxy report (LightSquid). Proxy realtime stat (SQStat). Requires squid HTTP proxy.</descr>
<website>http://lightsquid.sf.net/</website>
<category>Network Report</category>
- <version>2.42</version>
+ <version>2.43</version>
<maintainer>dv_serg@mail.ru</maintainer>
<depends_on_package_base_url>https://files.pfsense.org/packages/amd64/8/All/</depends_on_package_base_url>
<depends_on_package>lightsquid-1.8_2.tbz</depends_on_package>