TPL3BSXGOXPJ2CGNBO7S3XBQMKQFPNVML2EUCQD7ATVAOWYJ5TMAC
BZSJO2RML6TBWKVTZ4ERHQK6L3GQ6D2K6E36S4YWUGCHU4Z2W6LAC
DNOLOMX7MSBZMPOZUQPCCGQJ2OKV3642C4FWY6P6SK4LR5U26LTQC
DODOGD7MRCMRVGX23RPY2243WG54HCMCEZ6DCHOGID3GBQB66CXQC
LE4VZIY5VZ52FOP5QQRIJINWIMWTAPRTZTGO77JXUEPGRPRSQYMAC
use Getopt::Long qw(:config gnu_getopt);
}sub showHelp { print <<EOF;Usage: $0 [--once]Send stats to statsd. The --once flag can be used to send one roundof stats and then exit.Example: \$ $0 --onceEOF exit 0;
}
sub showHelp {
print <<EOF;
Usage: $0 [--once]
Send stats to statsd. The --once flag can be used to send one round
of stats and then exit.
Example:
\$ $0 --once
EOF
exit 0;
my $once = 0;GetOptions("once" => \$once, "help" => sub { showHelp() } ) or exit 1;
my $once = 0;
GetOptions("once" => \$once,
"help" => sub { showHelp() }
) or exit 1;
if ($once) { last; }
if ($once) {
last;
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-send-stats"));
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-send-stats", "--once"));