IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2011, 2:46:41 PM (15 years ago)
Author:
watersc1
Message:

Add date options as needed. Handle non-nebulous space in a way that allows it to be accounted better.

File:
1 edited

Legend:

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

    r32230 r32602  
    11#! /usr/local/bin/perl -w
     2
     3
     4use Getopt::Std;
     5use DateTime;
     6use PS::IPP::Config;
     7
     8getopts('D:',\%opt);
     9
    210my $count_list = shift;
     11my $ipprc = PS::IPP::Config->new("GPC1");
     12my $nebcon = $ipprc->nebulous();
     13
     14
     15if (exists($opt{D})) {
     16    my $datestring = $opt{D};
     17    my $usage_data = "neb:///ipp_diskspace/${datestring}/usage_report.dat";
     18    my $real_file  = $ipprc->file_resolve($usage_data);
     19    open(DATA,$real_file) || die "Cannot find usage_report.dat\n";
     20}
    321
    422while(<DATA>) {
    523    chomp;
     24    if ($_ =~ /^\s+/) {
     25        next;
     26    }
    627    ($stage,$state,$label,undef,$rate,$count) = split /\s+/;
    728    $data{$stage}{$state}{L} = $label;
Note: See TracChangeset for help on using the changeset viewer.