]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
*** empty log message ***
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 1 Jul 2005 15:27:25 +0000 (15:27 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 1 Jul 2005 15:27:25 +0000 (15:27 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@372 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/script/sum.pl

index 270b01c5fdcd8b23209993a1df6bceb21d2fa41c..87522b17c85043435e7a4871fc5e984fa5c1b2ed 100755 (executable)
@@ -1,7 +1,8 @@
 #!/usr/bin/perl
 
+use strict;
 my $starttime = 1;
-my $enddtime = -1;
+my $endtime = -1;
 
 my $avgrows = 0;
 
@@ -14,7 +15,7 @@ while ($ARGV[0] =~ /^-/) {
                $starttime = shift @ARGV;
        }
        elsif ($_ eq '-end') {
-               $endttime = shift @ARGV;
+               $endtime = shift @ARGV;
        }
        else {
                die "i don't understand arg $_";
@@ -51,6 +52,8 @@ for (@data) {
        }
 
        next unless int $r;
+       next if $r < $starttime;
+       next if $endtime > 0 && $r > $endtime;
 
        $tcount{$r}++;
        #print "$r: @r\n";