[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Monitor time statistics wrong (ITS#1984)



asparks@quris.com wrote:
> Full_Name: Alan Sparks
> Version: 2.1.3-RELEASE
> OS: Solaris 7
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (65.101.243.201)
> 
> 
> Start and current time statistics are incorrect.  A query for these entries on
> my system shows the following results (notice both times are 1/1/1970):
> 
> # Current, Time, Monitor
> dn: cn=Current,cn=Time,cn=Monitor
> objectClass: top
> objectClass: monitor
> objectClass: extensibleObject
> cn: Current
> description: 19700101000000Z
> 
> # Start, Time, Monitor
> dn: cn=Start,cn=Time,cn=Monitor
> objectClass: top
> objectClass: monitor
> objectClass: extensibleObject
> cn: Start
> description: 19700101000000Z
> 

Sorry, my fault: a change to the normalization
(lowercase instead of uppercase) resulted
in breaking some monitor entry updates.  I've
temporarily fixed the problem; I decided to
move the timestamps in createTimestamp and
modifyTimestamp, that is:

cn=Start,cn=Time,cn=Monitor
holds the start time in createTimestamp

cn=Current,cn=Time,cn=Monitor
holds the start time in createTimestamp
and the current time in modifyTimestamp.

This allows generalizedTimeMatch operations
on the attributes; in a future development
a specific attribute will be added
for DSA timing.

-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
mailto:pierangelo.masarati@polimi.it  | fax:   +39 02 2399 8334
http://www.aero.polimi.it/~masarati
Dip. Ing. Aerospaziale Politecnico di Milano,
via La Masa 34, 20156 Milano, Italy