[Openais] SA_TIME_UNKNOWN does not work properly in conjunction with ais_time_str

Steven Dake sdake at redhat.com
Fri Mar 23 14:35:51 PDT 2007


Try the attached patch:

Regards
-steve

On Thu, 2007-03-22 at 11:45 +0530, Hegde, Ramesh (STSD) wrote:
> Hello,
>  
> I am not able to print the correct value of the Event Time in case I
> set the event time to SA_TIME_UNKNOWN. I use function ais_time_str to
> print the event time.
> 
> The function always prints "Sat Jan 27 16:20:44 1990"
>  
> You can find this function in subscription.c test program. 
>  
> char *ais_time_str(SaTimeT time)
> {
>         time_t t;
>         t = time / 1000000000ULL;
>         strcpy(time_buf, ctime(&t));
>         return time_buf;
> }
> 
> Let me know if there is any changes required in this function?
>  
> Regards
> Ramesh
>  
> Ramesh Hegde 
> 
> Software Engineer, Hewlett Packard
> System Technology and Software Division 
> 3, Edward Road, 
> Bangalore - 560 052. India. 
> +91 80 2205 3838 - Direct 
> +91 80 2235 3604 - Fax 
> Jabber Id : rameshh at jabber.hp.com 
> +hp = everything is possible
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subscription-time.patch
Type: text/x-patch
Size: 384 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20070323/40f2d94e/subscription-time-0001.bin


More information about the Openais mailing list