Skip to content

Commit

Permalink
FOGL-9183: send trigger if lastsent time different than current time …
Browse files Browse the repository at this point in the history
…in seconds

Signed-off-by: nandan <[email protected]>
  • Loading branch information
gnandan committed Nov 5, 2024
1 parent 2edf177 commit 2a9b304
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion C/services/notification/notification_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,10 @@ bool NotificationInstance::handleState(bool evalRet)
// Set state depends on evalRet
setTriggered = evalRet;
// Try sending "triggered" when evaluation is true
ret = evalRet && timercmp(&diffTimeTv, &nType.retriggerTimeTv, >=);
if ( ( nType.retriggerTimeTv.tv_sec > 0) && (m_lastSentTv.tv_sec == now_tv.tv_sec))
ret = false;
else
ret = evalRet && timercmp(&diffTimeTv, &nType.retriggerTimeTv, >=);
break;

default:
Expand Down

0 comments on commit 2a9b304

Please sign in to comment.