@@ -26,7 +26,9 @@ |
||
| 26 | 26 | $dif['idle'] = $info2[3] - $info1[3]; |
| 27 | 27 | $total = array_sum($dif); |
| 28 | 28 | $cpu = array(); |
| 29 | - foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 1); |
|
| 29 | + foreach($dif as $x=>$y) { |
|
| 30 | + $cpu[$x] = round($y / $total * 100, 1); |
|
| 31 | + } |
|
| 30 | 32 | |
| 31 | 33 | return $cpu; |
| 32 | 34 | } |
@@ -36,8 +36,9 @@ |
||
| 36 | 36 | </div> |
| 37 | 37 | <ol class="navigation-menu"> |
| 38 | 38 | <?php foreach($__tabs as $_tab) { |
| 39 | - if($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 40 | - $_tab->selected = true; |
|
| 39 | + if($_SERVER['REQUEST_URI'] != $_tab->url) { |
|
| 40 | + $_tab->selected = true; |
|
| 41 | + } |
|
| 41 | 42 | ?> |
| 42 | 43 | <li class="menu-item"> |
| 43 | 44 | <a class="<?php echo $_tab->selected ? true : "selected"; ?>" href="<?php echo $_tab->url; ?>"> |