Fix because of a review remark
changeset: 5309:d93a77d0206a
tag: tip
parent: 5307:e6314eb96c72
user: Lennart Lund <[email protected]>
date: Fri May 23 13:40:52 2014 +0200
summary: log: Do not abort if osaf_timespec_compare returns 0 [#918]
rev: d93a77d0206a0f19d61449e7836abb8dd8f8813b
changeset: 5308:eeb028eff1af
branch: opensaf-4.4.x
parent: 5306:fbe39f98f3ac
user: Lennart Lund <[email protected]>
date: Fri May 23 13:40:52 2014 +0200
summary: log: Do not abort if osaf_timespec_compare returns 0 [#918]
rev: eeb028eff1afddb287b9bb680d471672a1d229b7
---
** [tickets:#918] log: Wrong timeout time on 32-bit systems**
**Status:** fixed
**Milestone:** 4.4.1
**Created:** Tue May 20, 2014 01:06 PM UTC by Anders Widell
**Last Updated:** Fri May 23, 2014 08:29 AM UTC
**Owner:** elunlen
There is a bug in the function get_timeout_time() in lgs_file.c, that makes it
calculate the wrong timeout-time on 32-bit systems:
uint64_t millisec1,millisec2;
GETTIME(start_time);
/* Convert to ms */
millisec1 = (start_time.tv_sec * 1000) + (start_time.tv_nsec / 1000000);
start_time.tv_sec is of type time_t, which is a 32_bit integer on 32-bit
platforms. Multiplying this with 1000 may overflow (actually it will, if time
is an absolute time in number of seconds since 1970). The solution is to case
tv_sec to a 64-bit integer before multiplying it with 1000.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets