We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab67f9b commit 767bcb7Copy full SHA for 767bcb7
C/services/notification/notification_manager.cpp
@@ -780,6 +780,13 @@ bool NotificationInstance::handleState(bool evalRet)
780
// Calculate time diff
781
timersub(&now_tv, &m_lastSentTv, &diffTimeTv);
782
783
+ // round up the seconds If microseconds are greater than or equal to 500000
784
+ if (diffTimeTv.tv_usec >= 500000)
785
+ {
786
+ diffTimeTv.tv_sec = diffTimeTv.tv_sec + 1;
787
+ diffTimeTv.tv_usec = 0;
788
+ }
789
+
790
switch(nType.type)
791
{
792
case NotificationInstance::OneShot:
0 commit comments