IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31413


Ignore:
Timestamp:
Apr 29, 2011, 3:52:08 PM (15 years ago)
Author:
watersc1
Message:

Allow neb-df to print volume names instead of host names with --names option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-df

    r26679 r31413  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($server);
     18my ($server,$names);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
     
    2222GetOptions(
    2323    'server|s=s'    => \$server,
     24    'names'         => \$names,
    2425) || pod2usage( 2 );
    2526
     
    5152        = @$row;
    5253    my $path        = $vol{host};
     54    if ($names) {
     55        $path = $vol{name};
     56    }
     57
    5358    my $total       = $vol{total};
    5459    $total_total    += $total;
Note: See TracChangeset for help on using the changeset viewer.