IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32623


Ignore:
Timestamp:
Nov 7, 2011, 1:25:45 PM (15 years ago)
Author:
watersc1
Message:

Add date option so I can redo the old dates with the new size/count calculations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diskspace/nebulous_wiki.pl

    r32622 r32623  
    77
    88$opt{S} = 0;
    9 getopts('S',\%opt);
     9getopts('SD:',\%opt);
    1010
    11 my $dt = DateTime->now;
    12 
    13 my @lt = gmtime;
    14 my $dt_data = DateTime->now;
    15 $dt->subtract( days => $lt[6]);
    16 my $datestring = $dt->ymd;
     11my $datestring;
     12if (exists($opt{D})) {
     13    $datestring = $opt{D};
     14}
     15else {
     16    my @lt = gmtime;
     17    my $dt = DateTime->now;
     18    $dt->subtract( days => $lt[6] );
     19    $datestring = $dt->ymd;
     20}
    1721
    1822@files = sort ( split /\n/, `neb-ls -p neb:///ipp_diskspace/${datestring}/%neb_usage.dat`);
Note: See TracChangeset for help on using the changeset viewer.