diff options
-rwxr-xr-x | lorry-controller | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lorry-controller b/lorry-controller index b3c2c45..e32a6e9 100755 --- a/lorry-controller +++ b/lorry-controller @@ -157,6 +157,8 @@ class LorryController(cliapp.Application): conf_uuid = lorry['controller-uuid'] conf = self.conf.configs[conf_uuid] nextdue = self.conf.duetimes[new_lorry] + # Make new lorries overdue. + nextdue -= conf['interval-parsed'] should_create = conf['create'] == "always" store_state = True if should_create: |