Send diag request only if not other one with some id running
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 22 Mar 2017 16:40:15 +0000 (16:40 +0000)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 23 Mar 2017 13:42:43 +0000 (14:42 +0100)
commit156b8f9c39a81cbbad7c32dbebdf321787611779
treef089611edaeaf62b75310d18db7464c06ef14af5
parentfe8235f257a009c911c63238885a47e0c3633293
Send diag request only if not other one with some id running

Fix: elapsed function return that do not compute elapsed_time at first time
Fix: reworked should_send() to get it work with our scheduling workflow
Reschedule trying to send request if recurring even it is in flight.

Change-Id: Idce54cb9bf62616c891a8a25a6c478f931350bc7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/diagnostic/active-diagnostic-request.cpp
src/diagnostic/diagnostic-manager.cpp
src/diagnostic/diagnostic-manager.hpp
src/utils/timer.cpp