fix 'Nested named subroutine'
This commit is contained in:
parent
a7062ad804
commit
f3e3b39023
1 changed files with 5 additions and 5 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue