Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/redis/redis_ | ||
|---|---|---|
| 128 | 128 |
print "missratio.draw STACK\n"; |
| 129 | 129 |
exit 0; |
| 130 | 130 |
} |
| 131 |
|
|
| 131 |
|
|
| 132 | 132 |
my $total = $hash->{'keyspace_hits'} + $hash->{'keyspace_misses'};
|
| 133 | 133 |
my $hitratio = 0; |
| 134 | 134 |
my $missratio = 0; |
| ... | ... | |
| 177 | 177 |
print "used_memory_rss.value ". $hash->{'used_memory_rss'} ."\n";
|
| 178 | 178 |
print "used_memory_peak.value ". $hash->{'used_memory_peak'} ."\n";
|
| 179 | 179 |
} |
| 180 |
|
|
| 180 |
|
|
| 181 | 181 |
case "used_keys" {
|
| 182 | 182 |
my $dbs; |
| 183 | 183 |
foreach my $key (keys %{$hash}) {
|
| ... | ... | |
| 210 | 210 |
close ($sock); |
| 211 | 211 |
|
| 212 | 212 |
sub get_conn {
|
| 213 |
|
|
| 213 |
|
|
| 214 | 214 |
my $sock; |
| 215 |
|
|
| 215 |
|
|
| 216 | 216 |
if( $UNIX_SOCKET && -S $UNIX_SOCKET ){
|
| 217 |
|
|
| 217 |
|
|
| 218 | 218 |
$sock = IO::Socket::UNIX->new( |
| 219 | 219 |
Type => SOCK_STREAM(), |
| 220 | 220 |
Peer => $UNIX_SOCKET, |
| 221 | 221 |
); |
| 222 |
|
|
| 222 |
|
|
| 223 | 223 |
}else{
|
| 224 |
|
|
| 224 |
|
|
| 225 | 225 |
$sock = IO::Socket::INET->new( |
| 226 | 226 |
PeerAddr => $HOST, |
| 227 | 227 |
PeerPort => $PORT, |
| ... | ... | |
| 229 | 229 |
Proto => 'tcp' |
| 230 | 230 |
); |
| 231 | 231 |
} |
| 232 |
|
|
| 232 |
|
|
| 233 | 233 |
if ( defined( $PASSWORD ) ) {
|
| 234 | 234 |
print $sock "AUTH ", $PASSWORD, "\r\n"; |
| 235 | 235 |
my $result = <$sock> || die "can't read socket: $!"; |
Formats disponibles : Unified diff