You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Damitha Kumarage (JIRA)" <ji...@apache.org> on 2007/03/13 05:57:09 UTC

[jira] Created: (SANDESHA2C-32) sandesha2_utils_get_current_time_in_millis is not functioning properly.

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: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


[jira] Commented: (SANDESHA2C-32) sandesha2_utils_get_current_time_in_millis is not functioning properly.

Posted by "Sahan Gamage (JIRA)" <ji...@apache.org>.
    [ 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: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


[jira] Commented: (SANDESHA2C-32) sandesha2_utils_get_current_time_in_millis is not functioning properly.

Posted by "Sahan Gamage (JIRA)" <ji...@apache.org>.
    [ 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: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org