From e9ba7339a7d1043603527ffad2302f3159e8d8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 5 Sep 2012 07:11:18 +0200 Subject: [PATCH] Coding style improvements --- server_status.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server_status.php b/server_status.php index ed936b6cb9..56953dd8a4 100644 --- a/server_status.php +++ b/server_status.php @@ -135,10 +135,14 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { } if (PMA_getSysInfoOs() == 'Linux') { - $ret[$chart_id][$node_id][$point_id]['idle'] = $cpuload['idle']; - $ret[$chart_id][$node_id][$point_id]['busy'] = $cpuload['busy']; - } else - $ret[$chart_id][$node_id][$point_id]['value'] = $cpuload['loadavg']; + $ret[$chart_id][$node_id][$point_id]['idle'] = + $cpuload['idle']; + $ret[$chart_id][$node_id][$point_id]['busy'] = + $cpuload['busy']; + } else { + $ret[$chart_id][$node_id][$point_id]['value'] = + $cpuload['loadavg']; + } break;