From 3f6a49bae3ec616469f21dfbbbaff052055b0c0e Mon Sep 17 00:00:00 2001 From: ShevAbam Date: Wed, 18 Jun 2014 10:15:18 +0200 Subject: - System : fix to get the distro name - Services : fix on service names with accent - Services : ability to specify a host for each service - Network usage : fix to retrieve the name of the network interfaces - Memory : the cached and buffers memory are added to free memory now - Load Average : taking into account the number of cores - Disk usage : new option to hide tmpfs mountpoints - General : remove all PHP short tags --- libs/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/network.php') diff --git a/libs/network.php b/libs/network.php index 12521bf..e486fc5 100644 --- a/libs/network.php +++ b/libs/network.php @@ -3,7 +3,7 @@ require 'Utils/Misc.class.php'; $datas = array(); -if (!(exec('/sbin/ifconfig | awk -F " " \'{print $1}\' | sed -e \'/^$/d\'', $getInterfaces))) +if (!(exec('/sbin/ifconfig |awk -F \'[/ |: ]\' \'{print $1}\' |sed -e \'/^$/d\'', $getInterfaces))) { $datas[] = array('interface' => 'N.A', 'ip' => 'N.A'); } -- cgit v1.3