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 ([EMAIL PROTECTED])
http://sapo.pt/

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to