@@ -107,6 +107,7 @@ discard block |
||
| 107 | 107 | * Return only those processes above certail value |
| 108 | 108 | * |
| 109 | 109 | * @param $processes Process[] |
| 110 | + * @param double $gate |
|
| 110 | 111 | * @return array |
| 111 | 112 | */ |
| 112 | 113 | protected function filterAbove($processes, $gate) |
@@ -119,7 +120,7 @@ discard block |
||
| 119 | 120 | /** |
| 120 | 121 | * Aggregate CPU for processes with the same name |
| 121 | 122 | * |
| 122 | - * @param $processes Process[] |
|
| 123 | + * @param Process[] $processes Process[] |
|
| 123 | 124 | */ |
| 124 | 125 | protected function aggregateCpu($processes) |
| 125 | 126 | { |
@@ -140,7 +141,7 @@ discard block |
||
| 140 | 141 | /** |
| 141 | 142 | * Aggregate memory for processes with the same name |
| 142 | 143 | * |
| 143 | - * @param $processes Process[] |
|
| 144 | + * @param Process[] $processes Process[] |
|
| 144 | 145 | * @return array |
| 145 | 146 | */ |
| 146 | 147 | protected function aggregateMemory($processes) |
@@ -173,7 +174,7 @@ discard block |
||
| 173 | 174 | * Persist collection values to a temporary storage |
| 174 | 175 | * key is the command string value |
| 175 | 176 | * |
| 176 | - * @param $collection |
|
| 177 | + * @param ValuesCollection $collection |
|
| 177 | 178 | */ |
| 178 | 179 | protected function persistCollection($collection) |
| 179 | 180 | { |
@@ -210,7 +211,7 @@ discard block |
||
| 210 | 211 | * |
| 211 | 212 | * These are in fact previous collection values that needs to be sent to statsd as 0 |
| 212 | 213 | * |
| 213 | - * @param $collection |
|
| 214 | + * @param ValuesCollection $collection |
|
| 214 | 215 | */ |
| 215 | 216 | protected function resetValues($collection) { |
| 216 | 217 | foreach ($collection as $key => $value) { |
@@ -223,7 +224,7 @@ discard block |
||
| 223 | 224 | /** |
| 224 | 225 | * Remove empty values from collection |
| 225 | 226 | * |
| 226 | - * @param $collection |
|
| 227 | + * @param ValuesCollection $collection |
|
| 227 | 228 | */ |
| 228 | 229 | protected function removeEmpty($collection) { |
| 229 | 230 | foreach ($collection as $key => $value) { |
@@ -44,6 +44,6 @@ |
||
| 44 | 44 | $this->command = new RemoteTopCommand($this->sshString, $this->sshPort, $this->sshIdentityFile); |
| 45 | 45 | |
| 46 | 46 | |
| 47 | - $this->namespace = preg_replace('/[^-+_.A-Za-z0-9]*/i', '', 'statsd.' . $this->sshString . '.' . $this->sshPort); |
|
| 47 | + $this->namespace = preg_replace('/[^-+_.A-Za-z0-9]*/i', '', 'statsd.'.$this->sshString.'.'.$this->sshPort); |
|
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |