diff options
author | Mathias Agopian <mathias@google.com> | 2012-04-19 18:18:24 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-04-19 18:18:24 -0700 |
commit | f48206f877d25d2bd3e385d6f3853df4eaff17db (patch) | |
tree | 42dd2b3d6a4b1e1335178172b898d60fbac89678 /services/sensorservice | |
parent | b7c30a847ae3526cee28e2e3e96b010a6fe7961c (diff) | |
download | frameworks_base-f48206f877d25d2bd3e385d6f3853df4eaff17db.zip frameworks_base-f48206f877d25d2bd3e385d6f3853df4eaff17db.tar.gz frameworks_base-f48206f877d25d2bd3e385d6f3853df4eaff17db.tar.bz2 |
fix a typo causing sensor event to be sorted in reverse chronological order
Change-Id: I041c64616d88ed1abb5efc90ed9eb0d9baeb4832
Diffstat (limited to 'services/sensorservice')
-rw-r--r-- | services/sensorservice/SensorService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index 16ddd91..d3b667f 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -316,7 +316,7 @@ void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count) static int cmp(void const* lhs, void const* rhs) { sensors_event_t const* l = static_cast<sensors_event_t const*>(lhs); sensors_event_t const* r = static_cast<sensors_event_t const*>(rhs); - return r->timestamp - l->timestamp; + return l->timestamp - r->timestamp; } }; qsort(buffer, count, sizeof(sensors_event_t), compar::cmp); |