[freeside-commits] freeside/FS/FS svc_port.pm,1.11,1.12

Ivan,,, ivan at wavetail.420.am
Tue Mar 1 22:42:27 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6983

Modified Files:
	svc_port.pm 
Log Message:
95th percentile line?

Index: svc_port.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_port.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- svc_port.pm	2 Mar 2011 06:33:48 -0000	1.11
+++ svc_port.pm	2 Mar 2011 06:42:24 -0000	1.12
@@ -238,7 +238,7 @@
     }
     # and hopefully we don't have folks doing Tbps on a single port :)
 
-    $value = sprintf("%.2f$suffix",$value) if $value >= 0;
+    $value = sprintf("%6.2f$suffix",$value) if $value >= 0;
 
     $value;
 }
@@ -342,7 +342,7 @@
   my $out_avg = $self->_format_bandwidth($out_sum/$numsamples);
 
   my $percentile = max( $self->_percentile(\@in), $self->_percentile(\@out) );
-  my @percentile = ( $percentile x scalar(@in) );
+  my @percentile = map $percentile, @in;
   $percentile = $self->_format_bandwidth($percentile); #for below
 
   warn "$me timediff=$timediff bwdiff=$bwdiff start=$start end=$end ".



More information about the freeside-commits mailing list