remove duplicated routines

This commit is contained in:
Isaac Connor committed 2015-12-17 13:11:15 -05:00
1 parent 64f65b55cc
commit 7a979bb891
1 file changed
-37
-37
View File
@@ -196,43 +196,6 @@ while( 1 )
sleep( $delay );
}
sub getDiskPercent
{
my $command = "df .";
my $df = qx( $command );
my $space = -1;
if ( $df =~ /\s(\d+)%/ms )
{
$space = $1;
}
return( $space );
}
sub getDiskBlocks
{
my $command = "df .";
my $df = qx( $command );
my $space = -1;
if ( $df =~ /\s(\d+)\s+\d+\s+\d+%/ms )
{
$space = $1;
}
return( $space );
}
sub getLoad
{
my $command = "uptime .";
my $uptime = qx( $command );
my $load = -1;
if ( $uptime =~ /load average:\s+([\d.]+)/ms )
{
$load = $1;
Info( "Load: $load" );
}
return( $load );
}
sub getFilters
{
my $filter_name = shift;