sensord: fix default interval when there is no client which registers event 84/70984/1
authorkibak.yoon <kibak.yoon@samsung.com>
Mon, 23 May 2016 12:47:05 +0000 (21:47 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Mon, 23 May 2016 12:47:05 +0000 (21:47 +0900)
- POLL_MAX_HZ_MS is too big, so it has to be changed to POLL_10HZ_MS(default)

Change-Id: I611c0983c601c02ab822b700efda4153dcb6a420
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/client/sensor_handle_info.cpp

index 99647d7..69ccac4 100644 (file)
@@ -130,7 +130,7 @@ void sensor_handle_info::get_batch(unsigned int &interval, unsigned int &latency
 {
        if (m_reg_event_infos.empty()) {
                _D("No events are registered for client %s", get_client_name());
-               interval = POLL_MAX_HZ_MS;
+               interval = POLL_10HZ_MS;
                latency = 0;
                return;
        }