projects
/
platform
/
core
/
api
/
motion.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69f9a83
)
Fix timestamp unit as seconds
71/167371/1
accepted/tizen_3.0_common
accepted/tizen_3.0_mobile
accepted/tizen_3.0_tv
accepted/tizen_3.0_wearable
tizen_3.0
accepted/tizen/3.0/common/20180202.113515
accepted/tizen/3.0/mobile/20180202.052042
accepted/tizen/3.0/tv/20180202.052046
accepted/tizen/3.0/wearable/20180202.052050
submit/tizen_3.0/20180129.070635
submit/tizen_3.0/20180129.093923
author
Somin Kim
<somin926.kim@samsung.com>
Wed, 17 Jan 2018 07:28:16 +0000
(16:28 +0900)
committer
Somin Kim
<somin926.kim@samsung.com>
Wed, 17 Jan 2018 08:05:38 +0000
(08:05 +0000)
Change-Id: I6f2a0bf220ac6038d3e9606cd8dbb58709450ccd
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
(cherry picked from commit
5ba7581504b3f6327da4ba775c8ede28c951ac85
)
src/SensorAdapter.cpp
patch
|
blob
|
history
diff --git
a/src/SensorAdapter.cpp
b/src/SensorAdapter.cpp
index 90cc77b07c55dc9020c120500d5a4d44e40c46c2..5e964dce55e03141dc90ed742f572b241fa0df8e 100644
(file)
--- a/
src/SensorAdapter.cpp
+++ b/
src/SensorAdapter.cpp
@@
-123,7
+123,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)