fix 'Nested named subroutine'

This commit is contained in:
Christian Loos 2016-08-30 13:16:33 +02:00
parent a7062ad804
commit f3e3b39023

View file

@ -366,12 +366,12 @@ sub pretty_uptime {
# Retrieves the memory installed on this machine
my ( $physical_memory, $swap_memory, $duflags );
sub os_setup {
sub memerror {
badprint "Unable to determine total memory/swap; use '--forcemem' and '--forceswap'";
exit 1;
}
sub memerror {
badprint "Unable to determine total memory/swap; use '--forcemem' and '--forceswap'";
exit 1;
}
sub os_setup {
my $os = `uname`;
$duflags = ( $os =~ /Linux/ ) ? '-b' : '';
if ( $opt{'forcemem'} > 0 ) {