Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/other/port_ | ||
|---|---|---|
| 55 | 55 |
:type => :GAUGE, :min => 0 |
| 56 | 56 |
|
| 57 | 57 |
def retrieve_values |
| 58 |
|
|
| 58 |
|
|
| 59 | 59 |
@_netstat = %x[netstat -n -P tcp | egrep "\.#{PORT} "].split( "\n" )
|
| 60 | 60 |
|
| 61 | 61 |
|
| ... | ... | |
| 73 | 73 |
@_result = 0 |
| 74 | 74 |
|
| 75 | 75 |
source.each { |obj| @_result += 1 if obj.match( regex ) }
|
| 76 |
|
|
| 76 |
|
|
| 77 | 77 |
return @_result |
| 78 | 78 |
end |
| 79 | 79 |
end |
Formats disponibles : Unified diff