summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-30 16:03:50 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-30 16:03:50 -0300
commitdfe2769c46d6f1a5fb29218e902901ea3ea080cb (patch)
treeb29a821730f94cd51c0924e72422b6d23c396f78 /usr
parentbc488151cc9460f86b44d9fc17da0e36fa33c80c (diff)
downloadpfsense-dfe2769c46d6f1a5fb29218e902901ea3ea080cb.zip
pfsense-dfe2769c46d6f1a5fb29218e902901ea3ea080cb.tar.gz
Use exec directly instead of exec_command
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/includes/functions.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index 2a98883..274c45b 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -183,9 +183,9 @@ function disk_usage() {
}
function swap_usage() {
- $swap_info = exec_command("/usr/sbin/swapinfo");
+ exec("/usr/sbin/swapinfo", $swap_info);
$swap_used = "";
- foreach (explode("\n", $swap_info) as $line)
+ foreach ($swap_info as $line)
if (preg_match('/(\d+)%$/', $line, $matches)) {
$swap_used = $matches[1];
break;
OpenPOWER on IntegriCloud