[freeside-commits] freeside/FS/FS cust_pkg.pm,1.196,1.197
Ivan,,,
ivan at wavetail.420.am
Fri Feb 4 22:25:59 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26197
Modified Files:
cust_pkg.pm
Log Message:
fix cpu/mem sucking when service labels are very long, RT#11452
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -w -d -r1.196 -r1.197
--- cust_pkg.pm 5 Feb 2011 06:03:50 -0000 1.196
+++ cust_pkg.pm 5 Feb 2011 06:25:56 -0000 1.197
@@ -2195,7 +2195,8 @@
while ( @values ) {
my $detail = "$label: ";
$detail .= shift(@values). ', '
- while @values && length($detail.$values[0]) < 78;
+ while @values
+ && ( length($detail.$values[0]) < 78 || $detail eq "$label: " );
$detail =~ s/, $//;
push @labels, $detail;
}
More information about the freeside-commits
mailing list