cnfsstat -a warns about uninitialized value for new buffer

Florian Schlichting fschlich at CIS.FU-Berlin.DE
Mon Oct 25 14:08:14 UTC 2010


Hi Julien,

On Sun, Oct 24, 2010 at 07:54:18PM +0200, Julien ÉLIE wrote:
> >Suggestion:
> >
> >Buffer BUFF09, size:  2.00 GBytes, position:  80.0 kBytes  0.00 cycles
> >  Created: 2010-10-20 18:29:10,    0 days,  0:09:33 ago
> >  No oldest article
> >
> >and of course the usual output "Newest"/"Oldest" when $oldart exists.
> 
> The code then looks like:
> 
>    my ($when, $ago) = &make_time($update);
>    if (defined $oldart || not $opt_a) {
>        print "  Newest: $when, $ago ago\n";
>    } else {
>        print "  Created: $when, $ago ago\n";
>    }
> 
>    if ($opt_a) {
>        if (defined $oldart) {
>            my ($when, $ago) = &make_time($oldart);
>            print "  Oldest: $when, $ago ago\n";
>        } else {
>            print "  No oldest article\n";
>        }
>    }

that's a lot nicer than what I suggested. 

+1

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5557 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20101025/af8f1f10/attachment.bin>


More information about the inn-workers mailing list