Skip to content

Commit f6cd903

Browse files
xeon2Anatolii Sakhnik
authored and
Anatolii Sakhnik
committed
Fix a bug to use clock_gettime()
:Release Notes: Fix a bug to use clock_gettime() Change return value check of clock_gettime(). :Detailed Notes: :Testing Performed: 1. tried to add "timeout event" to sleepd like following luna-send -f -n 1 -a my.test.app palm://com.palm.power/timeout/set ' { "key":"mykey", "uri":"luna://com.webos.notification/createToast", "in":"00:05:01", "wakeup" : true, "params": { "sourceId":"com.palm.activitymanager", "message" : "TEST~~!!", "noaction" : true } }' 2. Change system time to 1hour later from now using "Setting application" 3. Notification doesnot occurred. :QA Notes: :Issues Addressed: [GF-54721] clock_gettime() doesnot work correctly. (return ENOENT) on M14 Open-webOS-DCO-1.0-Signed-off-by: heekwon kang <[email protected]> Change-Id: I2140fc76fcd260c6f91763e8c865175ebab37029 Reviewed-on: https://g2g.palm.com/4177 Reviewed-by: DCO Verification Reviewed-by: Heekwon Kang <[email protected]> Tested-by: Heekwon Kang <[email protected]> Reviewed-by: Nikolay Orliuk <[email protected]> Reviewed-by: Anatolii Sakhnik <[email protected]>
1 parent 08c32a5 commit f6cd903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alarms/reference_time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static bool reference_gettime(time_t *ret_time)
4141
*/
4242
struct timespec ts;
4343

44-
if (!clock_gettime(CLOCK_BOOTTIME, &ts))
44+
if (clock_gettime(CLOCK_BOOTTIME, &ts) == -1)
4545
{
4646
return false;
4747
}

0 commit comments

Comments
 (0)