[Title] Modified the way to set next expired-time in scheduler
authordonghee yang <donghee.yang@samsung.com>
Fri, 17 Aug 2012 07:03:21 +0000 (16:03 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Fri, 17 Aug 2012 07:03:21 +0000 (16:03 +0900)
src/common/ScheduledActionHandler.rb

index 9a51cd0f9fbe5d03870dff92e215b5abf1572921..2c226d3b1c85dcc86178f22bbad4142065dc6d3e 100644 (file)
@@ -78,7 +78,9 @@ class ScheduledActionHandler
                                        # if periodic action, renew the time
                                        # else remove it from list
                                        if action.period != 0   then
-                                               action.time = action.time  + action.period
+                                               while current_time > action.time 
+                                                       action.time = action.time  + action.period
+                                               end
                                        else
                                                @actions.delete(action) 
                                        end