@@ -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 | } |
@@ -30,7 +30,9 @@ |
||
| 30 | 30 | $dif['idle'] = $info2[3] - $info1[3]; |
| 31 | 31 | $total = array_sum($dif); |
| 32 | 32 | $cpu = array(); |
| 33 | - foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 1); |
|
| 33 | + foreach($dif as $x=>$y) { |
|
| 34 | + $cpu[$x] = round($y / $total * 100, 1); |
|
| 35 | + } |
|
| 34 | 36 | |
| 35 | 37 | return $cpu; |
| 36 | 38 | } |
@@ -31,8 +31,9 @@ |
||
| 31 | 31 | $stmt->execute(); |
| 32 | 32 | |
| 33 | 33 | $__user_u->update_cooldown_time($_SESSION['siteusername'], "cooldown_comment"); |
| 34 | - if(@$_SESSION['siteusername'] != $_video['author']) |
|
| 35 | - $__user_i->send_message($_SESSION['siteusername'], "New comment", $_video['author'], "I commented \"" . $_POST['comment'] . "\" on your video!", $_video['rid'], "nt"); |
|
| 34 | + if(@$_SESSION['siteusername'] != $_video['author']) { |
|
| 35 | + $__user_i->send_message($_SESSION['siteusername'], "New comment", $_video['author'], "I commented \"" . $_POST['comment'] . "\" on your video!", $_video['rid'], "nt"); |
|
| 36 | + } |
|
| 36 | 37 | } |
| 37 | 38 | } |
| 38 | 39 | |