Fix data type from 'long' to 'long long' for time data 53/227153/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 10 Mar 2020 05:05:33 +0000 (14:05 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 10 Mar 2020 05:05:38 +0000 (14:05 +0900)
Member variable 'wakeup_start_time' and 'wakeup_end_time' store time data.
And this time data use milliseconds as a unit.

By specification of std::chrono::milliseconds, it needs at least 45bits memory
to store milliseconds data.
This patch changes data type from 'long' to 'long long' relative with time.

Change-Id: I948715bfb03d579cee78998faecac2ecdc6beeb4
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
include/multi_assistant_service.h

index cd8a5d74b138b370b138606635941dd707c80bed..33c94de1c542e8ade134608ab94a532e96919bfd 100644 (file)
@@ -68,8 +68,8 @@ typedef struct {
        const char *wakeup_engine;
        float wakeup_confidence_score;
 
-       long wakeup_start_time;
-       long wakeup_end_time;
+       long long wakeup_start_time;
+       long long wakeup_end_time;
        bool wakeup_time_valid;
 
        const void *extra_data;