From 0fdf74c1acc5a13e612979928d0f2b891d9c6fca Mon Sep 17 00:00:00 2001 From: sage Date: Fri, 1 Jul 2005 15:27:25 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@372 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/script/sum.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ceph/script/sum.pl b/ceph/script/sum.pl index 270b01c5fdc..87522b17c85 100755 --- a/ceph/script/sum.pl +++ b/ceph/script/sum.pl @@ -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";