cnfsstat

Alex Kiernan alexk at demon.net
Mon May 27 13:50:56 UTC 2002


Anyone understand why cnfsstat splits on \b (word breaks in Perl - it
was news to me) when syslogging (the commenting out is my change)?

Index: frontends/cnfsstat.in
===================================================================
RCS file: /dist1/cvs/isc/inn/inn/frontends/cnfsstat.in,v
retrieving revision 1.16
diff -u -r1.16 cnfsstat.in
--- frontends/cnfsstat.in       2001/11/11 13:38:03     1.16
+++ frontends/cnfsstat.in       2002/05/27 13:45:31
@@ -275,7 +275,7 @@
            &get_cycbuff_info($buffpath);
     
     if ($use_syslog) {
-       ($name) = split(/\b/, $name);
+#      ($name) = split(/\b/, $name);
        $name =~ s/\0//g;
        syslog ('notice', '%s Buffer %s, len: %d  Mbytes, used: %.2f Mbytes (%4.1f%%) %3d cycles',
                $logline, $name, $len / (1024 * 1024), $free / (1024 * 1024),

We've got cans called things like B-1 and this causes the name not to
make it into the log.

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC


More information about the inn-workers mailing list