(RADIATOR) AcctLogFileFormat
    pfig at co.sapo.pt 
    pfig at co.sapo.pt
       
    Wed Jul 16 17:23:23 CDT 2003
    
    
  
hi!
i noticed that there is no format string which gives the time from the 
current packet in 0-padded format (for the packet timestamp radiator 
supports %j; %k; %p, vs. %H; %M and %S for the current time, which are 
0-padded).
we need the 0-padded behaviour in order to maintain compatibility with the 
details generated by a very old and hacked merit server, which we are 
phasing out. since i didn't find a way to do this in the config file, i 
modified Util.pm:
bash-2.05a$ diff Util.pm Util-pfig.pm
93,95c93,95
<      'j', sub { return unless $ptime; @ptime = localtime($ptime); 
$ptime[2] },
<      'k', sub { return unless $ptime; @ptime = localtime($ptime); 
$ptime[1] },
<      'p', sub { return unless $ptime; @ptime = localtime($ptime); 
$ptime[0] },
---
>      'j', sub { return unless $ptime; @ptime = localtime($ptime); 
sprintf("%02d", $ptime[2]) },
>      'k', sub { return unless $ptime; @ptime = localtime($ptime); 
sprintf("%02d", $ptime[1]) },
>      'p', sub { return unless $ptime; @ptime = localtime($ptime); 
sprintf("%02d", $ptime[0]) },
i'd rather do this via a hook, but i can't find out how. am i overlooking 
something?
our customer id is ptm.pt.
cheers,
Pedro Figueiredo (pfig at co.sapo.pt)
http://sapo.pt/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://www.open.com.au/pipermail/radiator/attachments/20030716/022cdc65/attachment.bin>
    
    
More information about the radiator
mailing list