aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc_client.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2012-02-20 13:26:25 -0800
committerScott Ullrich <sullrich@gmail.com>2012-02-20 13:26:25 -0800
commitda2ef840410ff50354b30c1deddda08dd325e34b (patch)
treec7c565a540473fdf35bbd90402f105f83b7a80c7 /config/lcdproc-dev/lcdproc_client.php
parentcaf4f70c57b80e10be3950c4e394c7a4a965cb89 (diff)
parent48f2c6854fd11937f21fc6cf409e3eb16ce66958 (diff)
downloadpfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.tar.gz
pfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.tar.bz2
pfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.zip
Merge pull request #216 from mdima/master
LCDProc: Again on the service start/stop/restart
Diffstat (limited to 'config/lcdproc-dev/lcdproc_client.php')
-rw-r--r--config/lcdproc-dev/lcdproc_client.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/lcdproc-dev/lcdproc_client.php b/config/lcdproc-dev/lcdproc_client.php
index 684a645f..6050b6ca 100644
--- a/config/lcdproc-dev/lcdproc_client.php
+++ b/config/lcdproc-dev/lcdproc_client.php
@@ -42,15 +42,15 @@
if (isset($config['system']['maximumstates']) and $config['system']['maximumstates'] > 0)
$maxstates="/{$config['system']['maximumstates']}";
else
- $maxstates="/10000";
-
+ $maxstates="/". pfsense_default_state_size();
+
$curentries = `/sbin/pfctl -si |grep current`;
if (preg_match("/([0-9]+)/", $curentries, $matches)) {
$curentries = $matches[1];
}
return $curentries . $maxstates;
}
-
+
function disk_usage() {
$dfout = "";
exec("/bin/df -h | /usr/bin/grep -w '/' | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d '%' -f 1", $dfout);