Changeset 32602 for trunk/tools/diskspace/sizes_from_counts.pl
- Timestamp:
- Nov 2, 2011, 2:46:41 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/diskspace/sizes_from_counts.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diskspace/sizes_from_counts.pl
r32230 r32602 1 1 #! /usr/local/bin/perl -w 2 3 4 use Getopt::Std; 5 use DateTime; 6 use PS::IPP::Config; 7 8 getopts('D:',\%opt); 9 2 10 my $count_list = shift; 11 my $ipprc = PS::IPP::Config->new("GPC1"); 12 my $nebcon = $ipprc->nebulous(); 13 14 15 if (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 } 3 21 4 22 while(<DATA>) { 5 23 chomp; 24 if ($_ =~ /^\s+/) { 25 next; 26 } 6 27 ($stage,$state,$label,undef,$rate,$count) = split /\s+/; 7 28 $data{$stage}{$state}{L} = $label;
Note:
See TracChangeset
for help on using the changeset viewer.
