[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.179.2.18, 1.179.2.19
Ivan,,,
ivan at wavetail.420.am
Fri Feb 4 22:26:33 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26201
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.179.2.18
retrieving revision 1.179.2.19
diff -u -w -d -r1.179.2.18 -r1.179.2.19
--- cust_pkg.pm 5 Feb 2011 06:03:46 -0000 1.179.2.18
+++ cust_pkg.pm 5 Feb 2011 06:26:26 -0000 1.179.2.19
@@ -2192,7 +2192,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