Fix timestamp unit as seconds 61/167361/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181102.013210 accepted/tizen/5.5/unified/20191031.025659 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064050 accepted/tizen/5.5/unified/wearable/hotfix/20201027.120500 accepted/tizen/unified/20180118.071134 submit/tizen/20180117.074951 submit/tizen_5.0/20181101.000002 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 submit/tizen_5.5_wearable_hotfix/20201026.184302 tizen_5.5.m2_release
authorSomin Kim <somin926.kim@samsung.com>
Wed, 17 Jan 2018 07:28:16 +0000 (16:28 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Wed, 17 Jan 2018 07:37:21 +0000 (07:37 +0000)
Change-Id: I6f2a0bf220ac6038d3e9606cd8dbb58709450ccd
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
src/SensorAdapter.cpp

index 5b5d422..103c009 100644 (file)
@@ -124,7 +124,7 @@ double SensorAdapter::__getEpoch(unsigned long long monotonic)
 void SensorAdapter::__onEvent(sensor_data_t *eventData)
 {
        double timestamp = __getEpoch(eventData->timestamp);
-       __listener->onEvent(timestamp, eventData->values, eventData->accuracy);
+       __listener->onEvent(timestamp / 1000.0, eventData->values, eventData->accuracy);
 }
 
 void SensorAdapter::__eventCb(sensor_t sensor, unsigned int eventType, sensor_data_t *eventData, void *cbData)