blib/script/cron.pl untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
main
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2  
3 use strict;
4 use warnings;
5 use Getopt::Long;
6 use App::ProcTrends::Cron;
7  
8 exit( main() );
9  
10 sub main {
11 my $ref = {};
12  
13 GetOptions(
14 $ref,
15 "rrd_dir=s",
16 "timeout=i",
17 "ps_cmd=s",
18 "cpu_cores=i",
19 "cpu_threshold=i",
20 "rss_threshold=i",
21 "rss_unit=s",
22 "rrd_ds=s",
23 "debug",
24 );
25  
26 my $obj = App::ProcTrends::Cron->new( $ref );
27 my $result = $obj->run_ps();
28 return $obj->store_rrd( $result );
29 }