[
https://issues.apache.org/jira/browse/SANDESHA2C-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480272
]
Sahan Gamage commented on SANDESHA2C-32:
----------------------------------------
One way to avoid the overflow is to subtract some constant each and every time.
This would give a wrong timestamp for the current time, but since we are using
this timestamp only locally and for the comparison purposes, this approach
should work.
About the issue with ftime(), if we go for another function, we should make
sure that it works on windows as well. gettimeofday() is not available in
Windows and hence we might want to use #ifdef to distinguish between platforms
if we go for gettimeofday().
> sandesha2_utils_get_current_time_in_millis is not functioning properly.
> -----------------------------------------------------------------------
>
> Key: SANDESHA2C-32
> URL: https://issues.apache.org/jira/browse/SANDESHA2C-32
> Project: Sandesha2/C
> Issue Type: Bug
> Reporter: Damitha Kumarage
>
> The reason is that long is not large enough to hold the values. I temporarily
> fixed this by just returning the time in seconds. Also the ftime function
> used in this is depricated. We should use either time or gettimeofday
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]